ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject [Fwd: [Xdoclet-devel] CVS: xdoclet/core/src/xdoclet/ant/modulesbuilder ModulesGrandBuilderTask.java,1.9,1.10]
Date Sat, 21 Dec 2002 00:11:00 GMT
Sam - XDoclet folks committed a change that hopefully should fix the 
Gump issues by ensuring the properties get passed down.  Let Ara or I 
know if there are still issues.

	Erik

-------- Original Message --------
Subject: [Xdoclet-devel] CVS: 
xdoclet/core/src/xdoclet/ant/modulesbuilder 
ModulesGrandBuilderTask.java,1.9,1.10
Date: Fri, 20 Dec 2002 08:49:13 -0800
From: Konstantin Pribluda <ko5tik@users.sourceforge.net>
To: xdoclet-devel@lists.sourceforge.net

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
Xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel




--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message