MNG-3865: Allow the generation of the component.xml files from the bootstrap so that we can start eliminating the hand-written versions

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@719931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2008-11-22 22:26:16 +00:00
parent 39d13c66a6
commit c0bbd26f11
1 changed files with 23 additions and 1 deletions

View File

@ -89,11 +89,33 @@ TODO:
<!-- Pull the dependencies for the MetadataGenerator CLI -->
<artifact:dependencies pathId="pmdg.pathid" filesetId="pmdg.fileset" verbose="${verbose}">
<localRepository path="${maven.repo.local}"/>
<dependency groupId="org.codehaus.plexus" artifactId="plexus-component-metadata" version="1.0-beta-1"/>
<dependency groupId="org.codehaus.plexus" artifactId="plexus-component-metadata" version="1.0-beta-2-SNAPSHOT"/>
</artifact:dependencies>
</target>
<target name="generate-resources" depends="pull" description="generates plexus component metadata.">
<mkdir dir="${basedir}/bootstrap/target"/>
<mkdir dir="${basedir}/bootstrap/target/classes"/>
<path id="maven.classpath">
<pathelement location="bootstrap/target/classes"/>
<path refid="sources"/>
<path refid="pmdg.pathid"/>
<path refid="pom.pathid"/>
</path>
<java fork="fork" classname="org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli" failonerror="true">
<classpath refid="maven.classpath"/>
<arg value="--source"/>
<arg value="${basedir}/bootstrap/target/generate-sources"/>
<arg value="--classes"/>
<arg value="${basedir}/bootstrap/target/classes"/>
<arg value="--output"/>
<arg value="${basedir}/bootstrap/target/classes/META-INF/plexus/components.xml"/>
</java>
</target>
<target name="generate-sources" depends="pull" description="generates Java sources from Modello mdo model files">
<mkdir dir="bootstrap/target"/>
<mkdir dir="bootstrap/target/generated-sources"/>