summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/calculator-rmi-service
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-02-05 12:21:36 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-02-05 12:21:36 +0000
commiteda6f2a4367ea4e6507def8b3e5aeb7cba9e8288 (patch)
tree824bf0a967c5565f5f0f27c5b0732c252374e4a1 /java/sca/samples/calculator-rmi-service
parenta7621ae2165cc951c45fd44c56df260c9157b849 (diff)
Set up the sample scripts so that the automatic run uses a time to live of 4 seconds while the script, when run manually, waits for the user to press a key.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@741087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/calculator-rmi-service')
-rw-r--r--java/sca/samples/calculator-rmi-service/build.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/samples/calculator-rmi-service/build.xml b/java/sca/samples/calculator-rmi-service/build.xml
index 870ac9f68f..31fed2b026 100644
--- a/java/sca/samples/calculator-rmi-service/build.xml
+++ b/java/sca/samples/calculator-rmi-service/build.xml
@@ -21,6 +21,7 @@
<property name="jar.name" value="sample-calculator-rmi-service.jar" />
<property name="main.class" value="calculator.CalculatorClient" />
+ <property name="time.to.live" value="0" />
<target name="init">
<delete quiet="true" includeemptydirs="true">
@@ -70,18 +71,17 @@
<target name="run" depends="compile">
<java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher"
fork="true"
- timeout="6000"
failonerror="true">
<jvmarg value="-Djava.util.logging.config.file=${sample.root}/../../logging.properties"/>
<classpath>
<pathelement location="../../modules/tuscany-node-launcher-2.0-SNAPSHOT.jar"/>
<pathelement location="../../modules/commons-cli-1.1/commons-cli-1.1.jar"/>
- <pathelement location="../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT/tuscany-sca-2.0-SNAPSHOT/modules/tuscany-node-launcher-2.0-SNAPSHOT.jar"/>
- <pathelement location="../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT/tuscany-sca-2.0-SNAPSHOT/modules/commons-cli-1.1/commons-cli-1.1.jar"/>
+ <pathelement location="../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT-dir/tuscany-sca-2.0-SNAPSHOT/modules/tuscany-node-launcher-2.0-SNAPSHOT.jar"/>
+ <pathelement location="../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT-dir/tuscany-sca-2.0-SNAPSHOT/modules/commons-cli-1.1/commons-cli-1.1.jar"/>
</classpath>
<arg value="target/${jar.name}"/>
<arg value="-t"/>
- <arg value="5000"/>
+ <arg value="${time.to.live}"/>
</java>
</target>