From 12d2890a40bbe7b18668116c091df3bbe8491832 Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Wed, 22 Oct 2014 14:03:48 +0200 Subject: [PATCH] First experiments to see how the problem can be solved --- .../java/teetime/framework/FileSearcher.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/teetime/framework/FileSearcher.java diff --git a/src/main/java/teetime/framework/FileSearcher.java b/src/main/java/teetime/framework/FileSearcher.java new file mode 100644 index 00000000..faebb333 --- /dev/null +++ b/src/main/java/teetime/framework/FileSearcher.java @@ -0,0 +1,20 @@ +package teetime.framework; + +import java.io.IOException; +import java.util.StringTokenizer; + +public class FileSearcher { + + public static void main(final String[] args) throws IOException { + final String classpath = System.getProperty("java.class.path"); + final String pathSeparator = System.getProperty("path.separator"); + // System.out.println(classpath); + // System.out.println(pathSeparator); + + StringTokenizer st = new StringTokenizer(classpath, pathSeparator); + while (st.hasMoreTokens()) { + System.out.println(st.nextToken());// st.nextToken()); + } + } + +} -- GitLab