From 42f93380e81c00fc25243b05ee22dffd1a78fa4f Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Thu, 9 May 2002 23:10:14 +0000 Subject: adding support for --clone --- java/ant/Slice2JavaTask.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'java/ant/Slice2JavaTask.java') diff --git a/java/ant/Slice2JavaTask.java b/java/ant/Slice2JavaTask.java index 98ce6be25de..c6adf753bd0 100644 --- a/java/ant/Slice2JavaTask.java +++ b/java/ant/Slice2JavaTask.java @@ -33,6 +33,8 @@ import java.io.FileOutputStream; * tagdir - The directory in which tag files are located (default: "."). * outputdir - The value for the --output-dir translator option. * package - The value for the --package translator option. + * tie - The value for the --tie translator option. + * clone - The value for the --clone translator option. * * Nested elements: * @@ -71,6 +73,7 @@ public class Slice2JavaTask extends org.apache.tools.ant.Task _package = null; _includePath = null; _tie = false; + _clone = false; } public void @@ -132,6 +135,12 @@ public class Slice2JavaTask extends org.apache.tools.ant.Task _tie = tie; } + public void + setClone(boolean c) + { + _clone = c; + } + public FileSet createFileset() { @@ -226,6 +235,14 @@ public class Slice2JavaTask extends org.apache.tools.ant.Task cmd.append(" --tie"); } + // + // Add --clone + // + if (_clone) + { + cmd.append(" --clone"); + } + // // Add files to be translated // @@ -272,5 +289,6 @@ public class Slice2JavaTask extends org.apache.tools.ant.Task private String _package; private Path _includePath; private boolean _tie; + private boolean _clone; private java.util.List _fileSets = new java.util.LinkedList(); } -- cgit v1.2.3