maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r379625 - /maven/maven-1/plugins/trunk/java/plugin.jelly
Date Tue, 21 Feb 2006 23:39:17 GMT
Author: ltheussl
Date: Tue Feb 21 15:39:16 2006
New Revision: 379625

URL: http://svn.apache.org/viewcvs?rev=379625&view=rev
Log:
This doesn't work during bootstrap as javacc is not built yet.

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

Modified: maven/maven-1/plugins/trunk/java/plugin.jelly
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/java/plugin.jelly?rev=379625&r1=379624&r2=379625&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/java/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/java/plugin.jelly Tue Feb 21 15:39:16 2006
@@ -43,14 +43,17 @@
         description="Compile the project"
         prereqs="java:prepare-filesystem">
 
-    <maven:get var="generatedSources" plugin="maven-javacc-plugin" property="maven.gen.src"
/>
-    <ant:available
-      property="generatedSourcesPresent"
-      file="${generatedSources}"/>
+    <j:set var="generatedSourcesPresent" value="false"/>
+    <j:if test="${bootstrapping == null}">
+      <maven:get var="generatedSources" plugin="maven-javacc-plugin" property="maven.gen.src"
/>
+      <ant:available
+        property="generatedSourcesPresent"
+        file="${generatedSources}"/>
 
-    <j:if test="${generatedSourcesPresent}">
-      <ant:path id="maven.generated.src.set" location="${generatedSources}"/>
-      <maven:addPath id="maven.compile.src.set" refid="maven.generated.src.set"/>
+      <j:if test="${generatedSourcesPresent}">
+        <ant:path id="maven.generated.src.set" location="${generatedSources}"/>
+        <maven:addPath id="maven.compile.src.set" refid="maven.generated.src.set"/>
+      </j:if>
     </j:if>
 
     <j:choose>



Mime
View raw message