Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-19-2007
blair blair is offline
Registered User
 
Name: Blair Zajac
Organization: Sony Pictures Imageworks
Project: VnP
 
Join Date: Mar 2007
Posts: 24
Ant ICE_HOME and ice.bin.dir

Hello,

In SliceTask.java, there's this comment:

Code:
        // _iceHome used to be set in the constructor. It appears that the
        // current project isn't available at that point and consequently, the
        // properties that allow us to find the ice translators based on the
        // contents the 'ice.dir' property in the ant projects aren't available
        // yet.
However, the code checks for the ice.bin.dir property.

Code:
        if(_iceHome == null)
        {
            if(getProject().getProperties().containsKey("ice.bin.dir"))
            {
                _iceHome = (String)getProject().getProperties().get("ice.bin.dir");
            }
        }
Besides the consistency issue, I think that ice.bin.dir should be changed to
ice.dir, as currently you need to put

Code:
ice.bin.dir = /my/path/to/Ice-3.20
in your build.properties file. However, given the name ice.bin.dir, one
would expect to have

Code:
ice.bin.dir = /my/path/to/Ice-3.20/bin
But then this doesn't work in Slice2JavaTask.class:

Code:
        String translator;
        if(_translator == null)
        {
            if(getIceHome() == null)
            {
                translator = "slice2java";
            }
            else
            {
                translator = new File(getIceHome() + File.separator + "bin"
+ File.separator + "slice2java").toString();
            }
         }
Since it adds another bin to it.

So that's why I'm recommending that the code check for ice.dir.

Regards,
Blair
Reply With Quote
  #2 (permalink)  
Old 06-20-2007
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 813
Hi Blair,

Thanks for pointing out these issues; I agree with your recommendation.

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
slice2java ant task not re-running blair Help Center 3 11-29-2007 05:37 PM
Ice 3.1.0 requires Ant 1.6.3+ Andreas Scherer Bug Reports 0 07-13-2006 11:50 AM
slice2cpp -IDIR works, --include-dir DIR doesn't shaver Bug Reports 5 01-16-2005 07:34 PM
ICE-2.0.0.zip doesn't have /bin and /lib directories. Arun Bug Reports 2 11-23-2004 01:06 AM
how to use Slice2JavaTask for ant gumpagain Help Center 7 07-30-2004 10:44 AM


All times are GMT -4. The time now is 08:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.