[Swift-commit] r7935 - branches/release-0.95/src/org/griphyn/vdl/mapping/file

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Jul 3 20:29:03 CDT 2014


Author: hategan
Date: 2014-07-03 20:29:03 -0500 (Thu, 03 Jul 2014)
New Revision: 7935

Modified:
   branches/release-0.95/src/org/griphyn/vdl/mapping/file/MappingParamFileGenerator.java
Log:
Fixed compilation of param files on windows

Modified: branches/release-0.95/src/org/griphyn/vdl/mapping/file/MappingParamFileGenerator.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/mapping/file/MappingParamFileGenerator.java	2014-07-04 01:26:17 UTC (rev 7934)
+++ branches/release-0.95/src/org/griphyn/vdl/mapping/file/MappingParamFileGenerator.java	2014-07-04 01:29:03 UTC (rev 7935)
@@ -104,7 +104,8 @@
         }
         br.close();
         
-        String pkg = f.getParentFile().getAbsolutePath().substring(base.getAbsolutePath().length() + 1).replace('/', '.');
+        String pkg = f.getParentFile().getAbsolutePath().substring(
+            base.getAbsolutePath().length() + 1).replace(File.pathSeparatorChar, '.');
         File nf = new File(makeFileName(f));
         writeFile(nf, pkg, params, opts);
     }




More information about the Swift-commit mailing list