diff options
author | mkersten <mkersten> | 2003-09-05 06:48:30 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-09-05 06:48:30 +0000 |
commit | b42236b95ab40fffdab9acb6261a738b8d416b50 (patch) | |
tree | 305727d95cdce8dc80c23231fc29e66826a2fb50 /org.aspectj.ajdt.core | |
parent | a43ec0b4cfa28267dab8b1a87e100db44642a614 (diff) | |
download | aspectj-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.java | 10 |
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); + } + } } |