From 1c61f2c34bfb9f3b5383c930366b8d3243d08f9e Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 2 Jun 2004 12:13:06 +0000 Subject: [PATCH] replace hard-coded use of ';' with File.pathSeparator --- ajdoc/src/org/aspectj/tools/ajdoc/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java index 67c12c7f5..140394abb 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java @@ -439,8 +439,8 @@ public class Main implements Config { static void setSourcepath(String arg) { sourcepath.clear(); - arg = arg + ";"; // makes things easier for ourselves - StringTokenizer tokenizer = new StringTokenizer(arg, ";"); + arg = arg + File.pathSeparator; // makes things easier for ourselves + StringTokenizer tokenizer = new StringTokenizer(arg, File.pathSeparator); while (tokenizer.hasMoreElements()) { sourcepath.addElement(tokenizer.nextElement()); } @@ -451,7 +451,7 @@ public class Main implements Config { for (int i = 0; i < sourcepath.size(); i++) { cPath += (String)sourcepath.elementAt(i) + Config.DIR_SEP_CHAR + Config.WORKING_DIR; if (i != sourcepath.size()-1) { - cPath += ";"; + cPath += File.pathSeparator; } } return cPath; -- 2.39.5