summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/clients/currency-converter-rmi/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/clients/currency-converter-rmi/build.xml')
-rw-r--r--sandbox/travelsample/clients/currency-converter-rmi/build.xml20
1 files changed, 6 insertions, 14 deletions
diff --git a/sandbox/travelsample/clients/currency-converter-rmi/build.xml b/sandbox/travelsample/clients/currency-converter-rmi/build.xml
index 0a7a607fda..2d9d3bc9d9 100644
--- a/sandbox/travelsample/clients/currency-converter-rmi/build.xml
+++ b/sandbox/travelsample/clients/currency-converter-rmi/build.xml
@@ -18,27 +18,19 @@
-->
<project name="scatours-client-currency-converter-rmi" default="compile">
- <property environment="env"/>
+ <import file="../../antdefs.xml"/>
- <target name="compile">
- <mkdir dir="target/classes"/>
- <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
- <src path="src/main/java"/>
- </javac>
+ <!-- Before invoking the "run" target, the RMI implementation of the
+ currency converter service needs to be started in its own process. -->
+ <target name="run-service">
+ <ant dir="../../launchers/currency-converter-rmi" target="run"/>
</target>
<target name="run">
<java classname="scatours.CurrencyConverterRMIClient" fork="true">
<classpath>
- <pathelement location="target/classes"/>
+ <pathelement location="target/${ant.project.name}.jar"/>
</classpath>
</java>
</target>
-
- <target name="clean">
- <delete includeemptydirs="true">
- <fileset dir="target"/>
- </delete>
- </target>
-
</project>