]> source.dussan.org Git - aspectj.git/commitdiff
Added path canonicalization to config parser.
authormkersten <mkersten>
Fri, 5 Sep 2003 06:48:30 +0000 (06:48 +0000)
committermkersten <mkersten>
Fri, 5 Sep 2003 06:48:30 +0000 (06:48 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java

index bdef32fdf0b4a4723145bc6f9e8e09ad1e1bcb17..6adf13c3f39ea17fb9b2782d845462be9d7d4e09 100644 (file)
@@ -501,5 +501,15 @@ public class BuildArgParser extends Main {
 //            MessageUtil.warn(handler, message);
         }
 
+               protected File makeFile(File dir, String name) {
+                       name = name.replace('/', File.separatorChar);
+                       File ret = new File(name);
+                       if (dir == null || ret.isAbsolute()) return ret;
+                       try {
+                               dir = dir.getCanonicalFile();
+                       } catch (IOException ioe) { }
+                       return new File(dir, name);
+               }
+
     }
 }