jdillon 2003/08/24 14:25:40
Modified: modules/core maven.xml
Log:
o Use castor plugin tags if no binding file is required
Revision Changes Path
1.12 +7 -24 incubator-geronimo/modules/core/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/core/maven.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- maven.xml 24 Aug 2003 21:09:37 -0000 1.11
+++ maven.xml 24 Aug 2003 21:25:40 -0000 1.12
@@ -5,35 +5,18 @@
<project default="default"
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
- xmlns:maven="jelly:maven">
+ xmlns:maven="jelly:maven"
+ xmlns:castor="castor">
<preGoal name="xdoc:jelly-transform">
<attainGoal name="html2xdoc"/>
</preGoal>
<preGoal name="java:compile">
- <attainGoal name="castor:prepare-filesystem"/>
-
- <j:set var="schema" value="${basedir}/src/schema/geronimo-ejb-jar.xsd"/>
- <j:set var="gen"
value="${pom.getPluginContext('maven-castor-plugin').getVariable('maven.castor.dest')}"/>
-
- <ant:java className="org.exolab.castor.builder.SourceGenerator"
- failonerror="true">
- <ant:arg value="-i"/>
- <ant:arg value="${schema}"/>
-<!--
- <ant:arg value="-binding-file"/>
- <ant:arg value="${basedir}/src/etc/twiddle-configuration-binding.xml"/>
--->
- <ant:arg value="-package"/>
- <ant:arg value="org.apache.geronimo.enterprise.deploy.common"/>
- <ant:arg value="-types"/>
- <ant:arg value="j2"/>
- <ant:arg value="-nomarshall"/>
- <ant:arg value="-f"/>
- <ant:arg value="-dest"/>
- <ant:arg value="${gen}"/>
- </ant:java>
+ <castor:generate schema="${basedir}/src/schema/geronimo-ejb-jar.xsd"
+ package="org.apache.geronimo.twiddle.config"
+ marshal="false"
+ types="j2"/>
</preGoal>
<postGoal name="java:compile">