ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r394596 - /ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java
Date Mon, 17 Apr 2006 01:07:36 GMT
Author: kevj
Date: Sun Apr 16 18:07:34 2006
New Revision: 394596

URL: http://svn.apache.org/viewcvs?rev=394596&view=rev
Log:
revert back to while loop after discussion over prior change

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java?rev=394596&r1=394595&r2=394596&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java Sun Apr 16 18:07:34
2006
@@ -114,9 +114,9 @@
      */
     private void addPath(String path, boolean getJars, List libPathURLs)
             throws MalformedURLException {
-        for (StringTokenizer tzr = new StringTokenizer(path, File.pathSeparator); 
-                tzr.hasMoreElements();) {
-            String elementName = tzr.nextToken();
+        StringTokenizer tokenizer = new StringTokenizer(path, File.pathSeparator);
+        while(tokenizer.hasMoreElements()) {
+            String elementName = tokenizer.nextToken();
             File element = new File(elementName);
             if (elementName.indexOf("%") != -1 && !element.exists()) {
                 continue;



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


Mime
View raw message