Thank you, thank you! Konstantin Pribluda wrote:
Update of /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ant/modulesbuilder
In directory sc8-pr-cvs1:/tmp/cvs-serv19769/src/xdoclet/ant/modulesbuilder
Modified Files:
ModulesGrandBuilderTask.java Log Message:
commit on Ara's request
Index: ModulesGrandBuilderTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ant/modulesbuilder/ModulesGrandBuilderTask.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** ModulesGrandBuilderTask.java 5 Sep 2002 06:55:40 -0000 1.9
--- ModulesGrandBuilderTask.java 20 Dec 2002 16:49:10 -0000 1.10
***************
*** 278,281 ****
--- 278,296 ----
}
+ // pass on all the properties
+ Hashtable props = getProject().getProperties();
+ Enumeration prop_keys = props.keys();
+ + while (prop_keys.hasMoreElements()) {
+ String arg = prop_keys.nextElement().toString();
+ + if (argumentShouldntBePassedOn(arg))
+ continue;
+ + String value = props.get(arg).toString();
+ + cmdl.createArgument().setValue("-D" + arg + "=" + value);
+ }
+ exe.setCommandline(cmdl.getCommandline());
***************
*** 294,297 ****
--- 309,317 ----
throw new BuildException(e, location);
}
+ }
+ + private boolean argumentShouldntBePassedOn(String arg)
+ {
+ return "basedir".equals(arg) || "ant.file".equals(arg) || arg.startsWith("java.") || arg.startsWith("sun.");
}
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
