stevel 2005/08/23 07:17:14
Modified: src/main/org/apache/tools/ant/launch Launcher.java
Log:
bug #36171; -noclasspath crashes ant if no system classpath is set.
submitted by Benjamin Burgess
Revision Changes Path
1.34 +1 -2 ant/src/main/org/apache/tools/ant/launch/Launcher.java
Index: Launcher.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/launch/Launcher.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- Launcher.java 22 Aug 2005 21:24:22 -0000 1.33
+++ Launcher.java 23 Aug 2005 14:17:14 -0000 1.34
@@ -186,8 +186,7 @@
//decide whether to copy the existing arg set, or
//build a new one from the list of all args excluding the special
//operations that only we handle
-
- if (libPaths.size() == 0 && cpString == null) {
+ if (argList.size() == args.length) {
newArgs = args;
} else {
newArgs = (String[]) argList.toArray(new String[argList.size()]);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]