ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/buildtools/src/java/org/apache/myrmidon/build AntlibDescriptorTask.java
Date Thu, 02 May 2002 13:21:16 GMT
donaldp     02/05/02 06:21:16

  Modified:    buildtools/src/java/org/apache/myrmidon/build
                        AntlibDescriptorTask.java
  Log:
  Hmm looks like xdoclet is busted and can't be run multiple times in the same JVM - yea!
  
  Revision  Changes    Path
  1.3       +21 -0     jakarta-ant-myrmidon/buildtools/src/java/org/apache/myrmidon/build/AntlibDescriptorTask.java
  
  Index: AntlibDescriptorTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/buildtools/src/java/org/apache/myrmidon/build/AntlibDescriptorTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AntlibDescriptorTask.java	2 May 2002 09:54:01 -0000	1.2
  +++ AntlibDescriptorTask.java	2 May 2002 13:21:16 -0000	1.3
  @@ -9,8 +9,11 @@
   
   import java.net.URL;
   import java.util.List;
  +import java.io.File;
  +import java.io.IOException;
   import xdoclet.DocletTask;
   import xdoclet.TemplateSubTask;
  +import org.apache.tools.ant.BuildException;
   
   /**
    * A Task that generates Myrmidon Antlib descriptors from source files,
  @@ -56,6 +59,24 @@
       public void addAntdoc( final AntDocSubTask antDocs )
       {
           m_antDocs = antDocs;
  +    }
  +
  +    public void execute()
  +        throws BuildException
  +    {
  +        File tmpFile;
  +        try
  +        {
  +            tmpFile = File.createTempFile( "antlib", "tmp" );
  +            setXdoclettempfile( tmpFile );
  +        }
  +        catch( final IOException ioe )
  +        {
  +            throw new BuildException( ioe.getMessage(), ioe );
  +        }
  +
  +        super.execute();
  +        tmpFile.delete();
       }
   
       protected List getSubTasks()
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message