You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by se...@apache.org on 2002/08/07 18:35:55 UTC
cvs commit: xml-axis/java/xmls targets.xml
seibert 2002/08/07 09:35:55
Modified: java/xmls targets.xml
Log:
Added the default start / stop server targets
Moved Junit processing into this file
Revision Changes Path
1.5 +146 -2 xml-axis/java/xmls/targets.xml
Index: targets.xml
===================================================================
RCS file: /home/cvs/xml-axis/java/xmls/targets.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- targets.xml 30 Jul 2002 16:26:45 -0000 1.4
+++ targets.xml 7 Aug 2002 16:35:55 -0000 1.5
@@ -6,11 +6,11 @@
<target name="buildThem">
<echo message="${file}"/>
- <ant inheritAll="true" antfile="${file}" target="compile"/>
+ <ant antfile="${file}" target="compile"/>
</target>
<target name="runThem">
- <ant inheritAll="true" antfile="${file}" target="run" >
+ <ant antfile="${file}" target="run" >
<property name="batch" value="true"/>
</ant>
</target>
@@ -178,3 +178,147 @@
</target>
+
+ <!-- =================================================================== -->
+ <!-- Launches the functional test TCP server -->
+ <!-- =================================================================== -->
+ <target name="start-functional-test-tcp-server" if="junit.present">
+ <echo message="Starting test tcp server."/>
+ <java classname="samples.transport.tcp.TCPListener" fork="yes" dir="${axis.home}/build">
+ <arg line="-p 8088" /> <!-- arbitrary port -->
+ <classpath refid="classpath" />
+ </java>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Launches the functional test HTTP server -->
+ <!-- =================================================================== -->
+ <target name="start-functional-test-http-server" if="junit.present">
+ <echo message="Starting test http server."/>
+ <java classname="org.apache.axis.transport.http.SimpleAxisServer" fork="yes" dir="${axis.home}/build">
+ <!-- Uncomment this to use Jikes instead of Javac for compiling JWS Files
+ <jvmarg value="-Daxis.Compiler=org.apache.axis.components.compiler.Jikes"/>
+ -->
+ <jvmarg value="-Daxis.wsdlgen.intfnamespace=http://localhost:${test.functional.ServicePort}"/>
+ <jvmarg value="-Daxis.wsdlgen.serv.loc.url=http://localhost:${test.functional.ServicePort}"/>
+ <arg line="-p ${test.functional.SimpleAxisPort}" /> <!-- arbitrary port -->
+ <classpath refid="classpath" />
+ </java>
+
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Stops the functional test HTTP server -->
+ <!-- =================================================================== -->
+ <target name="stop-functional-test-http-server" if="junit.present" depends="stop-signature-signing-and-verification">
+ <echo message="Stopping test http server."/>
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="quit"/>
+ </java>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Stops the functional test HTTP server when testing digital signature -->
+ <!-- =================================================================== -->
+ <target name="stop-functional-test-http-server-secure" if="junit.present" depends="stop-signature-signing-and-verification">
+ <echo message="Stopping test http server."/>
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="quit"/>
+ </java>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Start Signature Signing and Verification -->
+ <!-- =================================================================== -->
+ <target name="start-signature-signing-and-verification" if="security.present">
+ <!-- Enable transparent Signing of SOAP Messages sent
+ from the client and Server-side Signature Verification.
+ -->
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="samples/security/serversecuritydeploy.wsdd"/>
+ </java>
+ <java classname="org.apache.axis.utils.Admin" fork="yes">
+ <classpath refid="classpath" />
+ <arg value="client"/>
+ <arg value="samples/security/clientsecuritydeploy.wsdd"/>
+ </java>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Stop Signature Signing and Verification -->
+ <!-- =================================================================== -->
+ <target name="stop-signature-signing-and-verification" if="security.present">
+ <!-- Disable transparent Signing of SOAP Messages sent
+ from the client and Server-side Signature Verification.
+ -->
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="samples/security/serversecurityundeploy.wsdd"/>
+ </java>
+ <java classname="org.apache.axis.utils.Admin" fork="yes">
+ <classpath refid="classpath" />
+ <arg value="client"/>
+ <arg value="samples/security/clientsecurityundeploy.wsdd"/>
+ </java>
+
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Prepares the JUnit functional test -->
+ <!-- =================================================================== -->
+ <target name="component-junit-functional-prepare" if="junit.present">
+ <mkdir dir="${axis.home}/${test.functional.reportdir}" />
+ <path id="deploy.xml.files">
+ <fileset dir="${build.dir}">
+ <include name="work/${componentName}/**/deploy.wsdd"/>
+ <include name="${extraServices}/deploy.wsdd" />
+ </fileset>
+ </path>
+
+ <path id="undeploy.xml.files">
+ <fileset dir="${build.dir}">
+ <include name="work/${componentName}/**/undeploy.wsdd"/>
+ <include name="${extraServices}/undeploy.wsdd" />
+ </fileset>
+ </path>
+
+ <property name="deploy.xml.property" refid="deploy.xml.files"/>
+ <property name="undeploy.xml.property" refid="undeploy.xml.files"/>
+ </target>
+
+
+<target name="component-junit-functional" if="junit.present" depends="component-junit-functional-prepare,start-signature-signing-and-verification">
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="${deploy.xml.property}"/>
+ </java>
+
+ <junit dir="." printsummary="yes" haltonfailure="${test.functional.fail}" fork="yes">
+ <classpath refid="classpath" />
+ <formatter type="xml" usefile="${test.functional.usefile}"/>
+ <batchtest todir="${test.functional.reportdir}">
+ <fileset dir="${build.dest}">
+ <include name="${componentName}/*TestCase.class" />
+ <include name="${componentName}/**/*TestCase.class" />
+ </fileset>
+ </batchtest>
+ </junit>
+
+ <java classname="org.apache.axis.client.AdminClient" fork="yes">
+ <classpath refid="classpath" />
+ <arg line="${undeploy.xml.property}"/>
+ </java>
+
+</target>
+
+<target name="execute-Component" depends="setenv" >
+ <runaxisfunctionaltests
+ url="http://localhost:8088"
+ startTarget1="start-functional-test-tcp-server"
+ startTarget2="start-functional-test-http-server"
+ testTarget="component-junit-functional"
+ stopTarget="stop-functional-test-http-server" />
+</target>