I've been sticking with maven b4 and while tracking down an Intake bug
today (it ended up being my fault), I found that maven b4's
prepareSource functionality is broken. It only copies the src/java files
over to target/src if running after a maven:clean.

So instead of always doing maven:clean/maven:install-jar, I added a
callback to just copy the files from src/java to target/src before
compiling.

Given maven's state of flux, this patch shouldn't be committed, but if
any other people are staying with maven b4 and compiling fulcrum, it's
handy.

- Stephen
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-fulcrum/build.xml,v
retrieving revision 1.56
diff -u -r1.56 build.xml
--- build.xml   22 Jun 2002 22:42:54 -0000      1.56
+++ build.xml   27 Jun 2002 03:43:38 -0000
@@ -12,6 +12,14 @@
   <!-- Set default values for the build -->
   <property file="project.properties" />
 
+  <property name="maven.core.callback.pre-compile.buildFile" value="build.xml"/>
+  <property name="maven.core.callback.pre-compile.buildTarget" value="pre-compile"/>
+  <target name="pre-compile">
+    <copy todir="target/src">
+      <fileset dir="src/java"/>
+    </copy>
+  </target>
+
   <!-- maven:start -->
 
   <!-- ================================================================== -->

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to