|
From: <mic...@us...> - 2003-12-06 23:43:43
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init
In directory sc8-pr-cvs1:/tmp/cvs-serv851/modules/init/src/com/babeldoc/init
Modified Files:
Main.java
Log Message:
Fixed an issue where directories on the classpath were not included in getClasspathFiles(), only zip and jar files.
Sent in by Walt Teh-Ming Yao <wal...@as...>
Index: Main.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/Main.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Main.java 25 Sep 2003 22:11:30 -0000 1.6
--- Main.java 6 Dec 2003 23:43:40 -0000 1.7
***************
*** 79,83 ****
import java.net.MalformedURLException;
-
/**
* Main entry point for babeldoc using a custom class loader to avoid the very
--- 79,82 ----
***************
*** 85,88 ****
--- 84,88 ----
*/
public class Main {
+
// private static ClassLoader loader;
public static final String BABELDOC_HOME = "babeldoc.home";
***************
*** 261,271 ****
String token = st.nextToken();
File file = new File(token);
! if(file.exists()&&
! (token.endsWith(DOT_JAR)||
! token.endsWith(DOT_ZIP))) {
! // System.out.println("Adding: "+token);
files.add(file);
} else {
! // System.out.println("Ignoring : "+token);
}
}
--- 261,272 ----
String token = st.nextToken();
File file = new File(token);
! if (file.exists() && (
! (token.endsWith(DOT_JAR)) ||
! (token.endsWith(DOT_ZIP)) ||
! (file.isDirectory()) ) ) {
! //System.out.println("Adding: "+token);
files.add(file);
} else {
! //System.out.println("Ignoring : "+token);
}
}
|