You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/03/07 20:53:43 UTC

svn commit: r383985 - /incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml

Author: gnodet
Date: Tue Mar  7 11:53:42 2006
New Revision: 383985

URL: http://svn.apache.org/viewcvs?rev=383985&view=rev
Log:
Make build work when starting clean (do not know why it fails, though)

Modified:
    incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml

Modified: incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml?rev=383985&r1=383984&r2=383985&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml (original)
+++ incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/maven.xml Tue Mar  7 11:53:42 2006
@@ -18,10 +18,23 @@
 -->
 
 <project xmlns:ant="jelly:ant"
-	xmlns:artifact="artifact">
+         xmlns:j="jelly:core" 
+         xmlns:maven="jelly:maven"
+	       xmlns:artifact="artifact">
+
+  <preGoal name="java:compile">
+    <attainGoal name="generate"/>
+    <j:set var="sourcesPresent" value="true" />
+    <ant:path
+       id="my.other.src.dir"
+       location="${basedir}/target/generated"/>
+    <maven:addPath
+       id="maven.compile.src.set"
+       refid="my.other.src.dir"/>
+  </preGoal>
 
 	<!-- redefined "build" goal from parent pom -->
-	<preGoal name="java:compile">
+	<goal name="generate">
 		<echo message="Compiling the JBI descriptor schema..." />
 		<mkdir dir="${basedir}/target/generated" />
 		<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"
@@ -39,6 +52,6 @@
 			package="org.apache.servicemix.descriptors.packaging.assets"
 			destdir="${basedir}/target/generated" />
 		
-	</preGoal>
+	</goal>
 
-</project>
\ No newline at end of file
+</project>