You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by ip...@apache.org on 2004/12/16 20:07:28 UTC
svn commit: r122564 - /incubator/muse/trunk/src/site/content/tutorial/disk/build.xml
Author: ips
Date: Thu Dec 16 11:07:26 2004
New Revision: 122564
URL: http://svn.apache.org/viewcvs?view=rev&rev=122564
Log:
fixed junit task classpath issue
Modified:
incubator/muse/trunk/src/site/content/tutorial/disk/build.xml
Modified: incubator/muse/trunk/src/site/content/tutorial/disk/build.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/tutorial/disk/build.xml?view=diff&rev=122564&p1=incubator/muse/trunk/src/site/content/tutorial/disk/build.xml&r1=122563&p2=incubator/muse/trunk/src/site/content/tutorial/disk/build.xml&r2=122564
==============================================================================
--- incubator/muse/trunk/src/site/content/tutorial/disk/build.xml (original)
+++ incubator/muse/trunk/src/site/content/tutorial/disk/build.xml Thu Dec 16 11:07:26 2004
@@ -9,40 +9,30 @@
<!-- workaround for those IDEs that don't set ant.home as they should -->
<property name="ant.home" value="${env.ANT_HOME}"/>
- <property name="muse.home" location="../../.." />
+ <property name="dist.home" location="../../.." />
+ <property name="dev.home" location="../../../../.." />
+
<property name="generated.src.dir" location="generated/src"/>
<property name="generated.classes.dir" location="generated/classes"/>
<property name="src.dir" location="src" />
<property name="disk.wsdl" location="${src.dir}/wsdl/disk.wsdl" />
-
-
- <target name="sendRequest" depends="init"
- description="Sends a SOAP Request given a XML request file. Please use ant -Dxml=<request file> for invocation.">
-
- <fail unless="xml" message="Please use -Dxml=<request file> for invocation."/>
- <echo>Endpoint URL: ${endpoint.url}</echo>
- <echo>Request File: ${xml}</echo>
- <java classname="org.apache.ws.soap.SOAPClient" classpathref="muse.classpath.id">
- <arg value="${endpoint.url}"/>
- <arg value="${xml}"/>
- </java>
-
- </target>
-
-
+
<target name="init">
- <available file="${muse.home}/webapps/muse" type="dir" property="internal.muse.webapp.dir" value="${muse.home}/webapps/muse" />
- <available file="${muse.home}/target/muse" type="dir" property="dist.muse.webapp.dir" value="${muse.home}/target/muse" />
- <condition property="muse.webapp.dir" value="${internal.muse.webapp.dir}">
- <isset property="internal.muse.webapp.dir"/>
- </condition>
+ <available file="${dist.home}/webapps/muse" type="dir" property="dist.muse.webapp.dir" value="${dist.home}/webapps/muse" />
<condition property="muse.webapp.dir" value="${dist.muse.webapp.dir}">
<isset property="dist.muse.webapp.dir"/>
</condition>
+ <available file="${dev.home}/target/muse" type="dir" property="dev.muse.webapp.dir" value="${dev.home}/target/muse" />
+ <condition property="muse.webapp.dir" value="${dev.muse.webapp.dir}">
+ <isset property="dev.muse.webapp.dir"/>
+ </condition>
- <fail unless="muse.webapp.dir" message="webapp dir ${muse.home}/webapps/muse does not exist." />
+ <fail unless="muse.webapp.dir" message="webapp dir ${dist.home}/webapps/muse does not exist." />
<echo>Using webapp dir: ${muse.webapp.dir}</echo>
+
+ <property name="junit.jar" location="${muse.webapp.dir}/WEB-INF/lib/junit-3.8.1.jar" />
+ <copy file="${junit.jar}" todir="${ant.home}/lib" verbose="true" />
<path id="muse.classpath.id">
<pathelement location="${generated.classes.dir}" />
@@ -150,6 +140,19 @@
<target name="clean" description="delete the generated source and class files">
<delete dir="generated" />
+ </target>
+
+ <target name="sendRequest" depends="init"
+ description="Sends a SOAP Request given a XML request file. Please use ant -Dxml=<request file> for invocation.">
+
+ <fail unless="xml" message="Please use -Dxml=<request file> for invocation."/>
+ <echo>Endpoint URL: ${endpoint.url}</echo>
+ <echo>Request File: ${xml}</echo>
+ <java classname="org.apache.ws.soap.SOAPClient" classpathref="muse.classpath.id">
+ <arg value="${endpoint.url}"/>
+ <arg value="${xml}"/>
+ </java>
+
</target>
<target name="usage">
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org