summaryrefslogtreecommitdiff
path: root/java/ant/Slice2JavaTask.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-09-03 18:13:00 +0000
committerMark Spruiell <mes@zeroc.com>2003-09-03 18:13:00 +0000
commit9149421dfba66eb9d36dea42fb6ebc73ee96f3ea (patch)
treedb27acc91caa6410cbed9f2966241a8f37dbaf8e /java/ant/Slice2JavaTask.java
parentcygwin fix (diff)
downloadice-9149421dfba66eb9d36dea42fb6ebc73ee96f3ea.tar.bz2
ice-9149421dfba66eb9d36dea42fb6ebc73ee96f3ea.tar.xz
ice-9149421dfba66eb9d36dea42fb6ebc73ee96f3ea.zip
use ICE_HOME (if present) to find translator
Diffstat (limited to 'java/ant/Slice2JavaTask.java')
-rw-r--r--java/ant/Slice2JavaTask.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/java/ant/Slice2JavaTask.java b/java/ant/Slice2JavaTask.java
index f0f824cfc25..ed465fdafb8 100644
--- a/java/ant/Slice2JavaTask.java
+++ b/java/ant/Slice2JavaTask.java
@@ -71,7 +71,7 @@ public class Slice2JavaTask extends SliceTask
public
Slice2JavaTask()
{
- _translator = new File("slice2java");
+ _translator = null;
_package = null;
_tie = false;
}
@@ -145,6 +145,18 @@ public class Slice2JavaTask extends SliceTask
//
if(!buildList.isEmpty())
{
+ if(_translator == null)
+ {
+ if(_iceHome == null)
+ {
+ _translator = new File("slice2java");
+ }
+ else
+ {
+ _translator = new File(_iceHome + File.separator + "bin" + File.separator + "slice2java");
+ }
+ }
+
StringBuffer cmd = new StringBuffer();
//