You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ah...@apache.org on 2005/10/03 00:03:48 UTC

svn commit: r293176 - /maven/maven-1/plugins/trunk/plugin/plugin.jelly

Author: aheritier
Date: Sun Oct  2 15:02:49 2005
New Revision: 293176

URL: http://svn.apache.org/viewcvs?rev=293176&view=rev
Log:
Don't rewrite POM during bootstrap (artifact plugin isn't yet built)

Modified:
    maven/maven-1/plugins/trunk/plugin/plugin.jelly

Modified: maven/maven-1/plugins/trunk/plugin/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/plugin/plugin.jelly?rev=293176&r1=293175&r2=293176&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/plugin/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/plugin/plugin.jelly Sun Oct  2 15:02:49 2005
@@ -222,14 +222,17 @@
   <goal name="plugin:plugin" description="Build a plugin jar">
     <!-- For some reason a prereq on this causes an internal error... -->
     <attainGoal name="jar:jar" />
-    <artifact:rewritePOM path="${maven.build.dir}/project.xml"/>
-    <ant:jar
-      jarfile="${maven.build.dir}/${maven.jar.final.name}"
-      basedir="${maven.build.dir}"
-      update="true">       
-      <ant:setProperty name="includes" value="project.xml" />
-    </ant:jar>
-    <ant:delete file="${maven.build.dir}/project.xml" quiet="true"/>
+    <!-- We can't use it in the bootstrap phase because classes aren't yet build in the artifact plugin -->
+    <j:if test="${bootstrapping == null}">
+      <artifact:rewritePOM path="${maven.build.dir}/project.xml"/>
+      <ant:jar
+        jarfile="${maven.build.dir}/${maven.jar.final.name}"
+        basedir="${maven.build.dir}"
+        update="true">       
+        <ant:setProperty name="includes" value="project.xml" />
+      </ant:jar>
+      <ant:delete file="${maven.build.dir}/project.xml" quiet="true"/>
+    </j:if>
   </goal>
 
   <goal name="plugin:install" prereqs="plugin:plugin"



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org