[Swift-commit] r5313 - trunk/src/org/griphyn/vdl/engine
jonmon at ci.uchicago.edu
jonmon at ci.uchicago.edu
Sat Nov 19 19:28:25 CST 2011
Author: jonmon
Date: 2011-11-19 19:28:25 -0600 (Sat, 19 Nov 2011)
New Revision: 5313
Modified:
trunk/src/org/griphyn/vdl/engine/Karajan.java
Log:
Fixed import compilation issue.
Modified: trunk/src/org/griphyn/vdl/engine/Karajan.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/Karajan.java 2011-11-19 23:31:34 UTC (rev 5312)
+++ trunk/src/org/griphyn/vdl/engine/Karajan.java 2011-11-20 01:28:25 UTC (rev 5313)
@@ -196,18 +196,17 @@
File local = new File(swiftfilename);
if( !( lib_path == null || local.exists() ) )
{
- StringTokenizer st = new StringTokenizer(lib_path, ":");
- while(st.hasMoreTokens())
+ String[] path = lib_path.split(":");
+ for(String entry : path)
{
- String path = st.nextToken();
- String lib_script_location = path + "/" + swiftfilename;
- File tmp = new File(lib_script_location);
-
- if(tmp.exists())
+ String lib_script_location = entry + "/" + swiftfilename;
+ File file = new File(lib_script_location);
+
+ if(file.exists())
{
- swiftfilename = path + "/" + swiftfilename;
- xmlfilename = path + "/" + xmlfilename;
- moduleToImport = path + "/" + moduleToImport;
+ swiftfilename = entry + "/" + swiftfilename;
+
+ moduleToImport = entry + "/" + moduleToImport;
break;
}
}
More information about the Swift-commit
mailing list