User: rinkrank
Date: 02/04/27 07:05:16
Modified: core/src/xdoclet/loader Tag: MODULE_REFACTORING_BRANCH
BootstrapClassLoader.java
Log:
-commented out tagmappings
-disabled the "find xdoclet.jar hack" it works now if xdoclet.jar is on ant's
classpath, but we should try to make it wourk without it on ant's classpath
Revision Changes Path
No revision
No revision
1.4.2.1 +17 -2 xdoclet/core/src/xdoclet/loader/BootstrapClassLoader.java
Index: BootstrapClassLoader.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/loader/BootstrapClassLoader.java,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -w -r1.4 -r1.4.2.1
--- BootstrapClassLoader.java 21 Apr 2002 20:40:13 -0000 1.4
+++ BootstrapClassLoader.java 27 Apr 2002 14:05:15 -0000 1.4.2.1
@@ -43,17 +43,32 @@
private HashMap _classes = new HashMap();
public static File getXDocletJar()
{
- String myJarFileName =
BootstrapClassLoader.class.getProtectionDomain().getCodeSource().getLocation().getFile();
+ Class c = null;
+ ClassLoader cl = ClassLoader.getSystemClassLoader();
+
+ try
+ {
+ c = Class.forName( "xdoclet.DocletTask", true, cl );
+ }
+ catch( Throwable t )
+ {
+ t.printStackTrace();
+ }
+
+ String myJarFileName =
c.getProtectionDomain().getCodeSource().getLocation().getFile();
// For some weird reason, myJarFile now points to ant.jar. This is a
hack around that until we find a better solution
File myJarFile = new File( myJarFileName );
+
+// System.err.println( "xdoclet.jar=" + myJarFile.getAbsolutePath() );
+
File myRealJarFile = new File( myJarFile.getParentFile(),
"xdoclet.jar" );
if( !myRealJarFile.exists() )
{
Category cat = Log.getCategory( BootstrapClassLoader.class,
"getXDocletJar" );
- cat.error( "You have to put xdoclet.jar under " +
myJarFile.getParentFile().getAbsolutePath() );
+ System.err.println( "You have to put xdoclet.jar under " +
myJarFile.getParentFile().getAbsolutePath() );
return null;
}
return myRealJarFile;
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel