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 th...@apache.org on 2006/11/01 10:08:39 UTC
svn commit: r469832 -
/webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
Author: thilina
Date: Wed Nov 1 01:08:39 2006
New Revision: 469832
URL: http://svn.apache.org/viewvc?view=rev&rev=469832
Log:
We no longer need to use the generated build file to generate service... Getting rid of the need to set AXIS2_HOME
Modified:
webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml?view=diff&rev=469832&r1=469831&r2=469832
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/build.xml Wed Nov 1 01:08:39 2006
@@ -48,9 +48,8 @@
<classpath refid="class.path" />
</java>
<copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
- <ant dir="${service.dir}" />
- <copy file="${service.dir}/build/lib/MTOMSample.aar" tofile="${service.dir}/MTOMSample.aar" overwrite="true" />
- <copy file="${service.dir}/MTOMSample.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true" />
+ <antcall target="jar.server"/>
+ <copy file="${service.dir}/sample-mtom.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true">
</target>
<target name="check-parameters">
<condition property="parameters.set">
@@ -102,7 +101,23 @@
</classpath>
</java>
</target>
+ <target name="jar.server">
+ <mkdir dir="${service.dir}/classes" />
+ <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" destdir="${service.dir}/classes" srcdir="${service.dir}/src">
+ <classpath refid="class.path"/>
+ </javac>
+ <copy toDir="${service.dir}/classes/META-INF" failonerror="false">
+ <fileset dir="${service.dir}/resources">
+ <include name="*.xml"/>
+ <include name="*.wsdl"/>
+ <include name="*.xsd"/>
+ </fileset>
+ </copy>
+ <jar destfile="${service.dir}/sample-mtom.aar">
+ <fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
+ </jar>
+ </target>
<target name="clean">
<delete dir="build" />
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org