|
|
Choosing A Webhost: |
svn commit: r291004 - /webservices/wss4j/trunk/build.xml: msg#00239apache.webservices.fx.devel
Author: werner Date: Thu Sep 22 12:08:01 2005 New Revision: 291004 URL: http://svn.apache.org/viewcvs?rev=291004&view=rev Log: Clean up a little bit, rearrange some common used code, add new targets to make life easier for testing, debugging, timing. Modified: webservices/wss4j/trunk/build.xml Modified: webservices/wss4j/trunk/build.xml URL: http://svn.apache.org/viewcvs/webservices/wss4j/trunk/build.xml?rev=291004&r1=291003&r2=291004&view=diff ============================================================================== --- webservices/wss4j/trunk/build.xml (original) +++ webservices/wss4j/trunk/build.xml Thu Sep 22 12:08:01 2005 @@ -8,26 +8,8 @@ This file is intended for ANT, a Java based build tool. ANT is available from http://jakarta.apache.org/ant/index.html - This build file is intended to build the wss4j package, - available from http://sf.net/projects/wss4j/ - Prerequisites: - J2SDK 1.4 from http://java.sun.com/ - jakarta-ant from http://jakarta.apache.org/ant/ - commons-logging from http://jakarta.apache.org/commons/logging.html - log4j from http://jakarta.apache.org/log4j - xml-security from http://xml.apache.org/security/ - ***** Attention: WSS4J uses a pre-release of xml-security - that supports XML-Cipher. This jar file is contained - in wss4j/lib. - this requires also xalan from http://xml.apache.org/xalan - and a JCE provider, e.g. from bouncycastle.org (recommended) - xml-api various Java XML-APIs (W3C DOM, javax.xml.soap). To compile - WSS4J the API classes are sufficient, to run it an - implementation is necessary - -Optional components: - junit from http://www.junit.org/ + See the REAME file Build Instructions: To build, run @@ -421,38 +403,14 @@ <target name="interopTests" depends="init"> <echo message="Running system tests - BEGIN..."/> - <path id="deploy_xml_files"> - <fileset dir="${build.work}"> - <include name="**/deploy.wsdd"/> - </fileset> - </path> <path id="undeploy_xml_files"> <fileset dir="${build.work}"> <include name="**/undeploy.wsdd"/> </fileset> </path> - - <copy todir="${build.dir}/keys"> - <fileset dir="${dir.keys}" includes="**"/> - </copy> - <copy todir="${build.dir}/interop"> - <fileset dir="${dir.interop}" includes="*.jks"/> - </copy> - - <property name="deploy_xml_property" refid="deploy_xml_files"/> <property name="undeploy_xml_property" refid="undeploy_xml_files"/> - <java classname="org.apache.axis.utils.Admin" fork="true"> - <classpath refid="classpath.library"/> - <arg value="client"/> - <arg file="${build.work}/org/apache/ws/axis/oasis/Client_deploy.wsdd"/> - </java> - - <java classname="org.apache.axis.client.AdminClient" fork="yes"> - <classpath refid="classpath.library"/> - <arg line="${deploy_xml_property}"/> - </java> - + <antcall target="deployWSDD" /> <junit printsummary="yes" haltonfailure="yes" fork="yes" @@ -559,28 +517,64 @@ <target name="scenario" if="junit.present"> <echo message="Running interop test scenario ${Number} on SimpleAxisServer"/> + <antcall target="deployWSDD" /> + + <java classname="interop.TestScenario${Number}" fork="yes" dir="${basedir}"> + <jvmarg value="-Djava.endorsed.dirs=${basedir}/endorsed"/> + <classpath refid="classpath.library"/> + </java> + + <antcall target="undeployWSDD" /> + + </target> + + <!-- + This runs the selected scenario with SimpleAxisServer locally with perfomance + timing switched on. + You may also emable the **.TIME entry in log4j.properties to get the internal + timing. + To run different scenarios use: "ant -DNumber=x scenarioTest" to run scenario x + --> + <target name="performanceTest" depends="compile" + if="junit.present" + description="Runs all JUnit tests"> + <runaxisfunctionaltests + url="http://localhost:8088" + httpServerTarget="start-functional-test-http-server" + testTarget="performance" + httpStopTarget="stop-functional-test-http-server"/> + </target> + + <target name="performance" if="junit.present"> + <echo message="Running performance test scenario ${Number} on SimpleAxisServer"/> + + <antcall target="deployWSDD" /> + <java classname="interop.TestScenario${Number}" fork="yes" dir="${basedir}"> + <jvmarg value="-Djava.endorsed.dirs=${basedir}/endorsed"/> + <arg value="-lhttp://localhost:8080/axis/services/Ping${Number}" /> + <arg value="-t" /> + <classpath refid="classpath.library"/> + </java> + <antcall target="undeployWSDD" /> + </target> + + <target name="deployWSDD"> <path id="deploy_xml_files"> <fileset dir="${build.work}"> <include name="**/deploy.wsdd"/> </fileset> </path> - <path id="undeploy_xml_files"> - <fileset dir="${build.work}"> - <include name="**/undeploy.wsdd"/> - </fileset> - </path> - <copy todir="${build.dir}/keys"> + <copy todir="${build.dir}/keys"> <fileset dir="${dir.keys}" includes="**"/> </copy> <copy todir="${build.dir}/interop"> <fileset dir="${dir.interop}" includes="*.jks"/> </copy> - - <property name="deploy_xml_property" refid="deploy_xml_files"/> - <property name="undeploy_xml_property" refid="undeploy_xml_files"/> - <java classname="org.apache.axis.utils.Admin" fork="true"> + <property name="deploy_xml_property" refid="deploy_xml_files"/> + + <java classname="org.apache.axis.utils.Admin" fork="true"> <classpath refid="classpath.library"/> <arg value="client"/> <arg file="${build.work}/org/apache/ws/axis/oasis/Client_deploy.wsdd"/> @@ -591,10 +585,16 @@ <arg line="${deploy_xml_property}"/> </java> - <java classname="interop.TestScenario${Number}" fork="yes" dir="${basedir}"> - <jvmarg value="-Djava.endorsed.dirs=${basedir}/endorsed"/> - <classpath refid="classpath.library"/> - </java> + </target> + + <target name="undeployWSDD"> + <path id="undeploy_xml_files"> + <fileset dir="${build.work}"> + <include name="**/undeploy.wsdd"/> + </fileset> + </path> + + <property name="undeploy_xml_property" refid="undeploy_xml_files"/> <java classname="org.apache.axis.utils.Admin" fork="true"> <classpath refid="classpath.library"/> @@ -607,8 +607,8 @@ <arg line="${undeploy_xml_property}"/> </java> - </target> - + </target> + <!-- generate a report from all the tests. requires Xalan or other XSLT engine in ant\lib--> <target name="report" depends="init">
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r291003 - /webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java, werner-1oDqGaOF3Lkdnm+yROfE0A |
|---|---|
| Next by Date: | svn commit: r291014 - in /webservices/wss4j/trunk/src/org/apache/ws/security: message/EnvelopeIdResolver.java transform/STRTransform.java, werner-1oDqGaOF3Lkdnm+yROfE0A |
| Previous by Thread: | svn commit: r291003 - /webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java, werner-1oDqGaOF3Lkdnm+yROfE0A |
| Next by Thread: | svn commit: r291014 - in /webservices/wss4j/trunk/src/org/apache/ws/security: message/EnvelopeIdResolver.java transform/STRTransform.java, werner-1oDqGaOF3Lkdnm+yROfE0A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |