Author: [email protected]
Date: Wed Jan 18 16:52:52 2012
New Revision: 1936

Log:
Version 1.0.2 Fix for Unix/Linux operating systems


Modified:
   sandbox/ivol/amdatu-commons/rest-doclet/pom.xml
   
sandbox/ivol/amdatu-commons/rest-doclet/src/main/java/org/amdatu/commons/restdoclet/RESTDoclet.java

Modified: sandbox/ivol/amdatu-commons/rest-doclet/pom.xml
==============================================================================
--- sandbox/ivol/amdatu-commons/rest-doclet/pom.xml     (original)
+++ sandbox/ivol/amdatu-commons/rest-doclet/pom.xml     Wed Jan 18 16:52:52 2012
@@ -24,7 +24,7 @@
   </parent>
   <artifactId>org.amdatu.commons.restdoclet</artifactId>
   <packaging>jar</packaging>
-  <version>1.0.1</version>
+  <version>1.0.2</version>
   <name>Amdatu Commons - REST Doclet</name>
   <description>A doclet to generate REST documentation</description>
 

Modified: 
sandbox/ivol/amdatu-commons/rest-doclet/src/main/java/org/amdatu/commons/restdoclet/RESTDoclet.java
==============================================================================
--- 
sandbox/ivol/amdatu-commons/rest-doclet/src/main/java/org/amdatu/commons/restdoclet/RESTDoclet.java
 (original)
+++ 
sandbox/ivol/amdatu-commons/rest-doclet/src/main/java/org/amdatu/commons/restdoclet/RESTDoclet.java
 Wed Jan 18 16:52:52 2012
@@ -86,11 +86,16 @@
             }
         }
         
+        // Depending on OS the classpath separator is ; or :
         String[] classPathEntries = classpath.split(";");
+        if (classpath.split(":").length > classPathEntries.length) {
+            classPathEntries = classpath.split(":");
+        }
         URL[] urls = new URL[classPathEntries.length];
         for (int i=0; i<classPathEntries.length; i++) {
             urls[i] = new File(classPathEntries[i]).toURL();
         }
+        log("classpath=" + classpath);
         return new URLClassLoader(urls);
     }
 
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to