Skip to content
Snippets Groups Projects
Commit 794fc794 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* cleaned up print statements

parent e4dec462
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,6 @@ public class Validator {
URI uri = null;
URL location = this.getClass().getProtectionDomain().getCodeSource().getLocation();
String codeLocation = location.toString();
System.out.println("Location: "+codeLocation);
try{
if (codeLocation.endsWith(".jar")) {
//Call from jar
......@@ -286,13 +285,10 @@ public class Validator {
//should get file out of jar / bundle instead
//TODO: simplify and merge with above, test other cases
//TODO: generalise for use in other cases, e.g. for docx and others?
System.out.println("In jar");
try {
Enumeration<URL> resources = ClassLoader.getSystemResources(relativePath.replaceAll("epsilon/", ""));
URL nextElement = resources.nextElement();
System.out.println("URL: "+nextElement);
uri = nextElement.toURI();
System.out.println("URI: "+uri);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment