|
|
|
|||||
|
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.
Code:
if(_iceHome == null)
{
if(getProject().getProperties().containsKey("ice.bin.dir"))
{
_iceHome = (String)getProject().getProperties().get("ice.bin.dir");
}
}
ice.dir, as currently you need to put Code:
ice.bin.dir = /my/path/to/Ice-3.20 would expect to have Code:
ice.bin.dir = /my/path/to/Ice-3.20/bin Code:
String translator;
if(_translator == null)
{
if(getIceHome() == null)
{
translator = "slice2java";
}
else
{
translator = new File(getIceHome() + File.separator + "bin"
+ File.separator + "slice2java").toString();
}
}
So that's why I'm recommending that the code check for ice.dir. Regards, Blair |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |