aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authormkersten <mkersten>2003-09-05 06:48:30 +0000
committermkersten <mkersten>2003-09-05 06:48:30 +0000
commitb42236b95ab40fffdab9acb6261a738b8d416b50 (patch)
tree305727d95cdce8dc80c23231fc29e66826a2fb50 /org.aspectj.ajdt.core
parenta43ec0b4cfa28267dab8b1a87e100db44642a614 (diff)
downloadaspectj-b42236b95ab40fffdab9acb6261a738b8d416b50.tar.gz
aspectj-b42236b95ab40fffdab9acb6261a738b8d416b50.zip
Added path canonicalization to config parser.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
index bdef32fdf..6adf13c3f 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
@@ -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);
+ }
+
}
}