Activate the xdoc generation for the model.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-09-27 12:49:54 +00:00
parent 1fa014b17b
commit e07d3929ae
2 changed files with 17 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class MBoot
{
"junit/jars/junit-3.8.1.jar",
"modello/jars/modello-core-1.0-SNAPSHOT.jar",
// "modello/jars/modello-xdoc-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xdoc-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xml-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xpp3-plugin-1.0-SNAPSHOT.jar",
"surefire/jars/surefire-booter-1.2-SNAPSHOT.jar",
@ -62,7 +62,7 @@ public class MBoot
"classworlds/jars/classworlds-1.1-SNAPSHOT.jar",
"plexus/jars/plexus-0.17-SNAPSHOT.jar",
"modello/jars/modello-core-1.0-SNAPSHOT.jar",
// "modello/jars/modello-xdoc-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xdoc-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xml-plugin-1.0-SNAPSHOT.jar",
"modello/jars/modello-xpp3-plugin-1.0-SNAPSHOT.jar",
"xpp3/jars/xpp3-1.1.3.3.jar",
@ -126,6 +126,8 @@ public class MBoot
private static final String GENERATED_SOURCES = BUILD_DIR + "/generated-sources";
private static final String GENERATED_DOCS = BUILD_DIR + "/generated-docs";
// ----------------------------------------------------------------------
// Per-session entities which we can reuse while building many projects.
// ----------------------------------------------------------------------
@ -422,6 +424,8 @@ public void buildProject( String basedir )
String generatedSources = new File( basedir, GENERATED_SOURCES ).getAbsolutePath();
String generatedDocs = new File( basedir, GENERATED_DOCS ).getAbsolutePath();
File buildDirFile = new File( basedir, BUILD_DIR );
String buildDir = buildDirFile.getAbsolutePath();
@ -457,6 +461,13 @@ public void buildProject( String basedir )
generatedSourcesDirectory.mkdirs();
}
File generatedDocsDirectory = new File( basedir, GENERATED_DOCS );
if ( !generatedDocsDirectory.exists() )
{
generatedDocsDirectory.mkdirs();
}
generateSources( model.getAbsolutePath(), "java", generatedSources, "4.0.0", "false" );
generateSources( model.getAbsolutePath(), "java", generatedSources, "3.0.0", "true" );
@ -468,6 +479,10 @@ public void buildProject( String basedir )
generateSources( model.getAbsolutePath(), "xpp3-writer", generatedSources, "4.0.0", "false" );
generateSources( model.getAbsolutePath(), "xpp3-writer", generatedSources, "3.0.0", "true" );
generateSources( model.getAbsolutePath(), "xdoc", generatedDocs, "4.0.0", "false" );
generateSources( model.getAbsolutePath(), "xdoc", generatedDocs, "3.0.0", "true" );
}
// ----------------------------------------------------------------------

BIN
mboot.jar

Binary file not shown.