quintonm 2003/01/20 13:48:54
Modified: . maven.xml
Log:
Added preCompile goal
- copies source into target/src
- generates OM objects for scheduler service
Revision Changes Path
1.3 +23 -2 jakarta-turbine-2/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/maven.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- maven.xml 11 Jan 2003 14:14:19 -0000 1.2
+++ maven.xml 20 Jan 2003 21:48:54 -0000 1.3
@@ -1,4 +1,4 @@
-<project
+<project
xmlns:j="jelly:core"
xmlns:m="maven"
xmlns:u="jelly:util"
@@ -6,7 +6,7 @@
<!-- Define a post goal for compile to copy intake.dtd into the appropriate
location for packaging in the jar file. -->
-
+
<postGoal name="java:compile">
<copy
@@ -15,5 +15,26 @@
/>
</postGoal>
+
+ <preGoal name="java:compile">
+
+ <!-- Setup where Torque generates the files to. -->
+ <copy todir="target/src">
+ <fileset dir="src/java"/>
+ </copy>
+
+ <!-- Now generate the scheduler service. -->
+ <j:set var="torque.project" value="scheduler"/>
+ <j:set var="torque.schema.om.includes" value="scheduler-schema.xml"/>
+ <j:set var="torque.targetPackage" value="${scheduler.package}"/>
+ <filter token="DATABASE_DEFAULT" value="${scheduler.database.name}"/>
+ <filter token="EXTRA_USER_COLUMNS" value="${scheduler.extra.user.columns}"/>
+ <copy
+ file="scheduler-schema.xml"
+ tofile="${torque.schema.dir}/scheduler-schema.xml"
+ filtering="yes"/>
+ <attainGoal name="torque:om"/>
+
+ </preGoal>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>