Browse Source

Suck manifest out of classpath

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271772 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
79944e317a
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      proposal/myrmidon/src/make/org/apache/myrmidon/build/AntDocSubTask.java

+ 7
- 5
proposal/myrmidon/src/make/org/apache/myrmidon/build/AntDocSubTask.java View File

@@ -19,21 +19,23 @@ import xdoclet.XDocletException;
* @author <a href="mailto:peter@apache.org">Peter Donald</a> * @author <a href="mailto:peter@apache.org">Peter Donald</a>
* @version $Revision$ $Date$ * @version $Revision$ $Date$
*/ */
public class AntDocSubTask
public class AntDocSubTask
extends TemplateSubTask extends TemplateSubTask
{ {
public final static String SUBTASK_NAME = "antdoc"; public final static String SUBTASK_NAME = "antdoc";


private static final String GENERATED_FILE_NAME = "{0}.xml"; private static final String GENERATED_FILE_NAME = "{0}.xml";
private static final String DEFAULT_TEMPLATE_FILE =
private static final String DEFAULT_TEMPLATE_FILE =
"/org/apache/myrmidon/build/type.j"; "/org/apache/myrmidon/build/type.j";


private File m_docsDestDir; private File m_docsDestDir;


public AntDocSubTask() public AntDocSubTask()
{ {
setTemplateFile( new File( DEFAULT_TEMPLATE_FILE ) );
setDestinationFile( GENERATED_FILE_NAME ); setDestinationFile( GENERATED_FILE_NAME );
final String templateFile =
getClass().getResource( DEFAULT_TEMPLATE_FILE ).getFile();
setTemplateFile( new File( templateFile ) );


final TemplateSubTask.ExtentTypes extent = new TemplateSubTask.ExtentTypes(); final TemplateSubTask.ExtentTypes extent = new TemplateSubTask.ExtentTypes();
extent.setValue( "hierarchy" ); extent.setValue( "hierarchy" );
@@ -41,7 +43,7 @@ public class AntDocSubTask
} }


/** /**
* Specifies the directory that is the destination of generated generated
* Specifies the directory that is the destination of generated generated
* xml documentation for types. * xml documentation for types.
*/ */
public void setDocsDestDir( final File docsDestDir ) public void setDocsDestDir( final File docsDestDir )
@@ -57,7 +59,7 @@ public class AntDocSubTask
/** /**
* Called to validate configuration parameters. * Called to validate configuration parameters.
*/ */
public void validateOptions()
public void validateOptions()
throws XDocletException throws XDocletException
{ {
super.validateOptions(); super.validateOptions();


Loading…
Cancel
Save