User: rinkrank
  Date: 02/05/13 17:23:49

  Modified:    core/src/xdoclet Tag: MODULE_REFACTORING_BRANCH
                        DocletTask.java
  Log:
  Added (incomplete) xsl-doc generation
  Improved error message in DocletTask
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.39.2.12 +10 -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.11
  retrieving revision 1.39.2.12
  diff -u -w -r1.39.2.11 -r1.39.2.12
  --- DocletTask.java   13 May 2002 22:30:52 -0000      1.39.2.11
  +++ DocletTask.java   14 May 2002 00:23:48 -0000      1.39.2.12
  @@ -62,8 +62,9 @@
       private List    subTasks = new ArrayList();
       private List    configParams = new ArrayList();
   
  -    public DocletTask()
  +    public DocletTask() throws BuildException
       {
  +        try {
           String classpath = ((AntClassLoader) 
getClass().getClassLoader()).getClasspath();
   
           System.setProperty("xdoclet.class.path", classpath);
  @@ -71,6 +72,10 @@
           List modules = ModuleFinder.findModules(verbose);
   
           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.");
  +        }
       }
   
       private static void registerModules(List modules) throws BuildException
  
  
  

_______________________________________________________________

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

Reply via email to