conor 01/02/20 05:12:07
Modified: src/main/org/apache/tools/ant/types Tag: ANT_13_BRANCH
CommandlineJava.java
Log:
Change the test for an empty classpath. Need to avoid classpaths
which evaluate to an empty string or the -classpath will swallow the
next parameter, usually the class to execute.
Revision Changes Path
No revision
No revision
1.9.2.3 +1 -1
jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java
Index: CommandlineJava.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/types/CommandlineJava.java,v
retrieving revision 1.9.2.2
retrieving revision 1.9.2.3
diff -u -r1.9.2.2 -r1.9.2.3
--- CommandlineJava.java 2001/02/15 12:59:32 1.9.2.2
+++ CommandlineJava.java 2001/02/20 13:12:04 1.9.2.3
@@ -189,7 +189,7 @@
result, pos, sysProperties.size());
pos += sysProperties.size();
}
- if (fullClasspath != null && fullClasspath.size() > 0) {
+ if (fullClasspath != null &&
fullClasspath.toString().trim().length() > 0) {
result[pos++] = "-classpath";
result[pos++] = fullClasspath.toString();
}