diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/FileUtil.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/util/src/org/aspectj/util/FileUtil.java b/util/src/org/aspectj/util/FileUtil.java index 34bf103a9..ccf54831f 100644 --- a/util/src/org/aspectj/util/FileUtil.java +++ b/util/src/org/aspectj/util/FileUtil.java @@ -1262,7 +1262,16 @@ public class FileUtil { } private FileUtil() { throw new Error("utility class"); } - + + public static List makeClasspath(URL[] urls) { + List ret = new LinkedList(); + if (urls != null) { + for (int i = 0; i < urls.length; i++) { + ret.add(urls[i].getPath()); + } + } + return ret; + } /** * A pipe when run reads from an input stream to an output stream, |