diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-05-09 23:10:14 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-05-09 23:10:14 +0000 |
commit | 42f93380e81c00fc25243b05ee22dffd1a78fa4f (patch) | |
tree | d10718a5601a378a3330a89b12b718a422a52eb0 /java/ant/Slice2JavaTask.java | |
parent | adding --clone, which generates a simple clone() implementation for (diff) | |
download | ice-42f93380e81c00fc25243b05ee22dffd1a78fa4f.tar.bz2 ice-42f93380e81c00fc25243b05ee22dffd1a78fa4f.tar.xz ice-42f93380e81c00fc25243b05ee22dffd1a78fa4f.zip |
adding support for --clone
Diffstat (limited to 'java/ant/Slice2JavaTask.java')
-rw-r--r-- | java/ant/Slice2JavaTask.java | 18 |
1 files changed, 18 insertions, 0 deletions
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() { @@ -227,6 +236,14 @@ public class Slice2JavaTask extends org.apache.tools.ant.Task } // + // Add --clone + // + if (_clone) + { + cmd.append(" --clone"); + } + + // // Add files to be translated // for (int i = 0; i < buildList.size(); i++) @@ -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(); } |