User: rinkrank
Date: 02/05/15 12:34:12
Modified: core/src/xdoclet Tag: MODULE_REFACTORING_BRANCH
DocletTask.java
Log:
-Made sure modules are only loaded once per VM
-Made namechanges to ejbjarxml/webxml consistent with subtask name
-Changed weblogicxml -> weblogicwebxml
Revision Changes Path
No revision
No revision
1.39.2.15 +8 -5 xdoclet/core/src/xdoclet/DocletTask.java
Index: DocletTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/DocletTask.java,v
retrieving revision 1.39.2.14
retrieving revision 1.39.2.15
diff -u -w -r1.39.2.14 -r1.39.2.15
--- DocletTask.java 15 May 2002 10:34:21 -0000 1.39.2.14
+++ DocletTask.java 15 May 2002 19:34:12 -0000 1.39.2.15
@@ -43,7 +43,7 @@
{
// ant will replace the tag with the version propperty specified in build.xml
public final static String XDOCLET_VERSION = "@VERSION@";
- private final static Map subtaskMap = new HashMap();
+ private static Map subtaskMap;
protected transient DocletContext context = null;
private List modules = null;
@@ -59,13 +59,16 @@
public DocletTask() throws BuildException
{
try {
+ if (subtaskMap == null) {
String classpath = ((AntClassLoader)
getClass().getClassLoader()).getClasspath();
System.setProperty("xdoclet.class.path", classpath);
List modules = ModuleFinder.findModules(true);
+ subtaskMap = new HashMap();
registerModules(modules);
+ }
}
catch (ClassCastException e) {
throw new BuildException("xdoclet.jar should not be on the system
classpath when starting Ant. It should be on a path passed to the taskdef.");
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel