summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/samples/zipcode-jaxws
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2008-12-01 12:01:57 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2008-12-01 12:01:57 +0000
commitb27c451ea317a0ff979739b7f15e4eb6d5931a39 (patch)
tree92f27f2608e4df397c62d5a3eb3fa9349ffb2ab8 /branches/sca-java-1.x/samples/zipcode-jaxws
parent5689c73862b418a94a66d2e50f354b053dd2db7a (diff)
Fixes for TUSCANY-2696
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@722054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples/zipcode-jaxws')
-rw-r--r--branches/sca-java-1.x/samples/zipcode-jaxws/build.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/branches/sca-java-1.x/samples/zipcode-jaxws/build.xml b/branches/sca-java-1.x/samples/zipcode-jaxws/build.xml
index 85caf5954e..20f2cd8f67 100644
--- a/branches/sca-java-1.x/samples/zipcode-jaxws/build.xml
+++ b/branches/sca-java-1.x/samples/zipcode-jaxws/build.xml
@@ -20,8 +20,12 @@
<!ENTITY buildDependency SYSTEM "build-dependency.xml">
]>
-<project name="sample-jaxws" default="compile">
+<project name="zipcode-jaxws" default="compile">
&buildDependency;
+
+ <property name="test.class" value="zipcode.ZipCodeClient" />
+ <property name="test.jar" value="sample-zipcode-jaxws.jar" />
+
<target name="compile" depends="download-wsdl">
<mkdir dir="target/classes"/>
<javac destdir="target/classes" debug="on" source="1.5" target="1.5">
@@ -34,9 +38,9 @@
<copy todir="target/classes">
<fileset dir="src/main/resources"/>
</copy>
- <jar destfile="target/sample-zipcode-jaxws.jar" basedir="target/classes">
+ <jar destfile="target/${test.jar}" basedir="target/classes">
<manifest>
- <attribute name="Main-Class" value="zipcode.ZipCodeClient"/>
+ <attribute name="Main-Class" value="${test.class}"/>
</manifest>
</jar>
</target>
@@ -50,9 +54,9 @@
<target name="package" depends="compile" />
<target name="run">
- <java classname="zipcode.ZipCodeClient" fork="true">
+ <java classname="${test.class}" fork="true">
<classpath>
- <pathelement location="target/sample-zipcode-jaxws.jar"/>
+ <pathelement location="target/${test.jar}"/>
<fileset refid="tuscany.jars"/>
<fileset refid="3rdparty.jars"/>
</classpath>