You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-dev@ws.apache.org by jk...@apache.org on 2005/02/14 10:13:56 UTC
svn commit: r153743 - webservices/mirae/trunk/build.xml
Author: jkumaran
Date: Mon Feb 14 01:13:54 2005
New Revision: 153743
URL: http://svn.apache.org/viewcvs?view=rev&rev=153743
Log:
Changes to make it working for windows
Modified:
webservices/mirae/trunk/build.xml
Modified: webservices/mirae/trunk/build.xml
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/build.xml?view=diff&r1=153742&r2=153743
==============================================================================
--- webservices/mirae/trunk/build.xml (original)
+++ webservices/mirae/trunk/build.xml Mon Feb 14 01:13:54 2005
@@ -32,15 +32,15 @@
<property name="build.classes.tools.dir" location="${build.classes.dir}/tools"/>
<property name="build.classes.tools.wsdl2ws_j2me.dir" location="${build.classes.tools.dir}/wsdl2ws_j2me"/>
<property name="test.dir" location="${build.dir}/tests"/>
- <property name="test.unit.dir" location="${test.dir}/unit"/>
- <property name="test.unit.data.dir" location="${test.unit.dir}/data"/>
- <property name="test.unit.reports.dir" location="${test.unit.dir}/reports"/>
- <property name="test.functional.dir" location="${test.dir}/functional"/>
- <property name="test.functional.client.dir" location="${test.functional.dir}/client"/>
+ <property name="test.unit.dir" location="${test.dir}/unit"/>
+ <property name="test.unit.data.dir" location="${test.unit.dir}/data"/>
+ <property name="test.unit.reports.dir" location="${test.unit.dir}/reports"/>
+ <property name="test.functional.dir" location="${test.dir}/functional"/>
+ <property name="test.functional.client.dir" location="${test.functional.dir}/client"/>
<property name="mirae.home.lib" location="${mirae.home}/lib"/>
<property name="mirae.home.bin" location="${mirae.home}/bin"/>
<property name="mirae.home.build" location="${mirae.home}/build"/>
- <property name="mirae.home.tests.functional" location="${mirae.home}/tests/functional"/>
+ <property name="mirae.home.tests.functional" location="${mirae.home}/tests/functional"/>
<property name="src.dir" value="./src/mirae"/>
<property name="tools.dir" value="./src/tools"/>
<property name="bin.dir" value="./bin"/>
@@ -52,7 +52,7 @@
<property name="version" value="1.0"/>
<fileset dir="${j2me-home}/lib" id="j2mejars">
- <include name="**/*.jar"/>
+ <include name="**/*.*"/>
</fileset>
<fileset dir="${mirae.home.lib}" id="axisjars">
@@ -70,8 +70,10 @@
<path id="wsdl2ws.classpath">
<fileset refid="axisjars"/>
+ <fileset refid="j2mejars"/>
+
</path>
-
+
<path id="test.classpath">
<path refid="compile.classpath"/>
<pathelement location="${build.classes.tools.wsdl2ws_j2me.dir}"/>
@@ -90,39 +92,39 @@
<sleep seconds="5"/>
</target>
- <!-- Initialize testing-->
+ <!-- Initialize testing-->
<target name="test-init">
- <mkdir dir="${test.dir}"/>
+ <mkdir dir="${test.dir}"/>
</target>
- <!-- Initialize unit testing-->
- <target name="test-unit-init">
+ <!-- Initialize unit testing-->
+ <target name="test-unit-init">
<delete dir="${test.unit.dir}"/>
<delete dir="${test.unit.data.dir}"/>
- <delete dir="${test.unit.reports.dir}"/>
- <mkdir dir="${test.unit.dir}"/>
+ <delete dir="${test.unit.reports.dir}"/>
+ <mkdir dir="${test.unit.dir}"/>
<mkdir dir="${test.unit.data.dir}"/>
- <mkdir dir="${test.unit.reports.dir}"/>
+ <mkdir dir="${test.unit.reports.dir}"/>
</target>
- <!-- Initialize functional testing-->
- <target name="test-functional-init" depends="test-init">
- <delete dir="${test.functional.dir}"/>
- <mkdir dir="${test.functional.dir}"/>
- <mkdir dir="${test.functional.client.dir}"/>
+ <!-- Initialize functional testing-->
+ <target name="test-functional-init" depends="test-init">
+ <delete dir="${test.functional.dir}"/>
+ <mkdir dir="${test.functional.dir}"/>
+ <mkdir dir="${test.functional.client.dir}"/>
</target>
- <!--Create test compile target-->
+ <!--Create test compile target-->
<target name="test-compile" depends="test-unit-init">
<javac destdir="${test.unit.dir}"
debug="${build.debug}"
includeAntRunTime="true"
srcdir="${testsrc.dir}/unit">
- <classpath refid="test.classpath"/>
+ <classpath refid="test.classpath"/>
</javac>
- </target>
+ </target>
- <!--Create the target for running junit tests-->
+ <!--Create the target for running junit tests-->
<target name="junit" depends="test-compile">
<junit printsummary="true" haltonfailure="true">
<classpath refid="test.classpath"/>
@@ -131,13 +133,13 @@
<test name="${testcase}" todir="${test.unit.data.dir}" if="testcase"/>
<batchtest fork="yes" todir="${test.unit.data.dir}" unless="testcase">
<fileset dir="${test.unit.dir}" includes="**/*Test.class"/>
- </batchtest>
+ </batchtest>
</junit>
</target>
<!--Target for functional tests-->
<target name="functional-test" depends="test-functional-init">
- <ant dir="${testsrc.dir}/functional" />
+ <ant dir="${testsrc.dir}/functional"/>
</target>
<!--Starts Tomcat-->
@@ -166,16 +168,16 @@
<!--Compiles wsdl2ws tool source-->
<target name="tool-compile">
- <javac srcdir="${tools.dir}"
- destdir="${build.classes.tools.wsdl2ws_j2me.dir}"
- debug="${build.debug}">
+ <javac srcdir="${tools.dir}"
+ destdir="${build.classes.tools.wsdl2ws_j2me.dir}"
+ debug="${build.debug}">
<classpath refid="wsdl2ws.classpath"/>
</javac>
</target>
-
- <target name="makejar-wsdl2ws_j2me" depends="tool-compile" >
- <jar destfile="${lib.dir}/wsdl2ws_j2me.jar"
- basedir="${build.classes.tools.wsdl2ws_j2me.dir}"/>
+
+ <target name="makejar-wsdl2ws_j2me" depends="tool-compile">
+ <jar destfile="${lib.dir}/wsdl2ws_j2me.jar"
+ basedir="${build.classes.tools.wsdl2ws_j2me.dir}"/>
</target>
<!--Creates neccessary folder structure-->
@@ -195,9 +197,9 @@
</javac>
</target>
- <target name="makejar-mirae" depends="compile" >
- <jar destfile="${lib.dir}/mirae.jar"
- basedir="${build.classes.mirae.dir}"/>
+ <target name="makejar-mirae" depends="compile">
+ <jar destfile="${lib.dir}/mirae.jar"
+ basedir="${build.classes.mirae.dir}"/>
</target>
<!--Runs the test suite of the application-->
@@ -215,18 +217,13 @@
<!--build and run the tests -->
<target name="test" depends="mainbuild">
- <sequential>
+ <parallel>
<antcall target="startServer"/>
- </sequential>
- <sequential>
<antcall target="functional-test"/>
- </sequential>
- <sequential>
<antcall target="junit"/>
- </sequential>
- <sequential>
<antcall target="stopServer"/>
- </sequential>
+ </parallel>
+
</target>
<!--Cleans classes and the application jar file-->