Hello,
In SliceTask.java, there's this comment:
However, the code checks for the ice.bin.dir property.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.
Besides the consistency issue, I think that ice.bin.dir should be changed toCode: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
in your build.properties file. However, given the name ice.bin.dir, oneCode:ice.bin.dir = /my/path/to/Ice-3.20
would expect to have
But then this doesn't work in Slice2JavaTask.class:Code:ice.bin.dir = /my/path/to/Ice-3.20/bin
Since it adds another bin to it.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

Reply With Quote