You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2003/09/01 20:26:11 UTC
cvs commit: incubator-geronimo/modules/twiddle maven.xml
jdillon 2003/09/01 11:26:11
Modified: etc maven.xml
modules/twiddle maven.xml
Log:
o use common:castor tags for castor source gen
Revision Changes Path
1.17 +0 -0 incubator-geronimo/etc/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/etc/maven.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
1.6 +8 -36 incubator-geronimo/modules/twiddle/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/twiddle/maven.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- maven.xml 16 Aug 2003 15:14:12 -0000 1.5
+++ maven.xml 1 Sep 2003 18:26:11 -0000 1.6
@@ -4,48 +4,20 @@
<project default="default"
xmlns:j="jelly:core"
- xmlns:u="jelly:util"
xmlns:ant="jelly:ant"
- xmlns:castor="castor">
+ xmlns:castor="common:castor">
<!-- ================================= -->
<!-- Compile XML->Java Binding Sources -->
<!-- ================================= -->
<preGoal name="java:compile">
- <attainGoal name="castor:prepare-filesystem"/>
-
- <!-- this does not currently support -binding-file
- <castor:generate schema="${basedir}/src/schema/twiddle-configuration.xsd"
- package="org.apache.geronimo.twiddle.config"
- marshal="false"
- types="j2"/>
- -->
-
- <j:set var="schema" value="${basedir}/src/schema/twiddle-configuration.xsd"/>
- <j:set var="gen" value="${pom.getPluginContext('maven-castor-plugin').getVariable('maven.castor.dest')}"/>
-
- <ant:path id="castor.classpath">
- <ant:path refid="maven.dependency.classpath"/>
- </ant:path>
-
- <ant:java className="org.exolab.castor.builder.SourceGenerator"
- failonerror="true" fork="yes">
- <ant:classpath refid="castor.classpath"/>
- <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.twiddle.config"/>
- <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/twiddle-configuration.xsd"
+ binding="${basedir}/src/etc/twiddle-configuration-binding.xml"
+ package="org.apache.geronimo.twiddle.config"
+ marshal="false"
+ types="j2"/>
</preGoal>
</project>