You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2008/11/22 23:26:16 UTC

svn commit: r719931 - /maven/components/trunk/build.xml

Author: jvanzyl
Date: Sat Nov 22 14:26:16 2008
New Revision: 719931

URL: http://svn.apache.org/viewvc?rev=719931&view=rev
Log:
MNG-3865: Allow the generation of the component.xml files from the bootstrap so that we can start eliminating the hand-written versions

Modified:
    maven/components/trunk/build.xml

Modified: maven/components/trunk/build.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/build.xml?rev=719931&r1=719930&r2=719931&view=diff
==============================================================================
--- maven/components/trunk/build.xml (original)
+++ maven/components/trunk/build.xml Sat Nov 22 14:26:16 2008
@@ -89,11 +89,33 @@
     <!-- 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"/>