Hi,
I'm using Windows XP Pro/Sun JDK 1.4.1_01.
I had trouble trying to build Ant from CVS today. After asking in the JBoss list,
Adrian Brock <[EMAIL PROTECTED]> gave me this solution.
You need to patch ModulesGrandBuilderTask.java to build Ant under Windows:
Original Message:
----------------------------------------------------------
I'm not seeing Scott's problems
Windows XP
j2sdk1.4.1_01
ant-1.5.1 (October 2 2002)
I'm seeing problems with the command line and
the "Builder" task. It passes all system and
environment properties.
But it doesn't work very well when a value contains
a space, e.g. "Documents and Settings" or
"JBoss Group, LLC"
The following temporary hack allows me to
build xdoclet.
Index: ModulesGrandBuilderTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ant/modulesbuilder/ModulesGrandBuilderTask.java,v
retrieving revision 1.10
diff -u -r1.10 ModulesGrandBuilderTask.java
--- ModulesGrandBuilderTask.java 20 Dec 2002 16:49:10 -0000 1.10
+++ ModulesGrandBuilderTask.java 28 Dec 2002 14:44:32 -0000
@@ -289,7 +289,8 @@
String value = props.get(arg).toString();
- cmdl.createArgument().setValue("-D" + arg + "=" + value);
+ if (value.indexOf(" ") == -1)
+ cmdl.createArgument().setValue("-D" + arg + "=" + value);
}
exe.setCommandline(cmdl.getCommandline());
----------------------------------------------------------
Thanks,
Ricardo Arg�ello
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel