piotrp 2003/01/09 23:14:49
Modified: java build.xml
Log:
Changes to build J2C samples. Because of the way wsif-j2c.jar
is built and necessary order (myeis.jar needs to be created
before the sample service can be compiled), the existing samples
target could not be used.
Revision Changes Path
1.25 +20 -0 xml-axis-wsif/java/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/build.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- build.xml 21 Dec 2002 02:59:58 -0000 1.24
+++ build.xml 10 Jan 2003 07:14:48 -0000 1.25
@@ -37,6 +37,7 @@
Matthew J. Duftler <[EMAIL PROTECTED]>
Jeremy Hughes <[EMAIL PROTECTED]>
Owen Burroughs <[EMAIL PROTECTED]>
+ Piotr Przybylski <[EMAIL PROTECTED]>
==================================================================== -->
@@ -94,6 +95,8 @@
<property name="j2c.dir" value="${build.dir}/j2c"/>
<property name="j2c.jar" value="${build.dir}/lib/${j2c.name}.jar"/>
<property name="j2c.packages" value="org.apache.wsif.providers.jca.*"/>
+ <property name="j2c.sample.jar" value="${build.dir}/samples/jca/myeis.jar"/>
+ <property name="j2c.sample.rar" value="${build.dir}/samples/jca/myeis.rar"/>
</target>
<!-- =================================================================== -->
@@ -192,6 +195,7 @@
<exclude name="ejb/**/*.java" unless="ejb.present"/>
<exclude name="clients/zipcode/**/*.java"/> <!-- until this sample is
migrated -->
<exclude name="clients/stockquote/**/*.java"/> <!-- until this sample is
migrated -->
+ <exclude name="jca/**"/>
</patternset>
<patternset id="test.source.files">
@@ -308,6 +312,22 @@
<fileset dir="${samples.dir}">
</fileset>
</copy>
+ <antcall target="samples_j2c"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Compiles the j2c samples -->
+ <!-- =================================================================== -->
+ <target name="samples_j2c" if="j2c.present">
+ <javac srcdir="${build.samples}/jca/ra" destdir="${build.samples}/jca/ra"
+ classpath="${dynamic.dest}:${j2c.jar}" debug="${debug}"/>
+ <javac srcdir="${build.samples}/jca/customer"
destdir="${build.samples}/jca/customer"
+ classpath="${dynamic.dest}:${j2c.jar}:${build.samples}/jca/ra"
debug="${debug}"/>
+ <jar jarfile="${j2c.sample.jar}" basedir="${build.samples}/jca/ra"
update="true" excludes="**/j2c_plugin.xml,**/ra.xml"/>
+ <copy file="${j2c.sample.jar}" todir="${build.samples}/jca/ra"/>
+ <delete file="${j2c.sample.jar}"/>
+ <jar jarfile="${j2c.sample.rar}" basedir="${build.samples}/jca/ra"
update="true"
+ includes="myeis.jar,**/j2c_plugin.xml,**/ra.xml,**/ImportMyEIS.wsdl"/>
</target>
<!-- =================================================================== -->