Results 1 to 2 of 2

Thread: Ant ICE_HOME and ice.bin.dir

  1. #1
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34

    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

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Blair,

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

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-26-2008, 05:50 PM
  2. Ice 3.1.0 requires Ant 1.6.3+
    By Andreas Scherer in forum Bug Reports
    Replies: 0
    Last Post: 07-13-2006, 10:50 AM
  3. slice2cpp -IDIR works, --include-dir DIR doesn't
    By shaver in forum Bug Reports
    Replies: 5
    Last Post: 01-16-2005, 06:34 PM
  4. Replies: 2
    Last Post: 11-23-2004, 12:06 AM
  5. how to use Slice2JavaTask for ant
    By gumpagain in forum Help Center
    Replies: 7
    Last Post: 07-30-2004, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •