Browse Source

Handle unexpanded properties in Windows CLASSPATHS

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275998 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 21 years ago
parent
commit
a41ecd0f20
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/main/org/apache/tools/ant/launch/Launcher.java

+ 6
- 1
src/main/org/apache/tools/ant/launch/Launcher.java View File

@@ -153,7 +153,12 @@ public class Launcher {
StringTokenizer myTokenizer
= new StringTokenizer(libPath, System.getProperty("path.separator"));
while (myTokenizer.hasMoreElements()) {
File element = new File(myTokenizer.nextToken());
String elementName = myTokenizer.nextToken();
File element = new File(elementName);
if (elementName.startsWith("%") && elementName.endsWith("%")
&& !element.exists()) {
continue;
}
if (element.isDirectory()) {
// add any jars in the directory
URL[] dirURLs = Locator.getLocationURLs(element);


Loading…
Cancel
Save