From b42236b95ab40fffdab9acb6261a738b8d416b50 Mon Sep 17 00:00:00 2001 From: mkersten Date: Fri, 5 Sep 2003 06:48:30 +0000 Subject: [PATCH] Added path canonicalization to config parser. --- .../src/org/aspectj/ajdt/ajc/BuildArgParser.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } + } } -- 2.39.5