diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-05 20:05:10 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-05 20:05:10 +0000 |
commit | e3c74b28535aa840c7f8526f729a537be6526d8d (patch) | |
tree | c5f46bfbe5f65948c2a4acab2a150563594b35fc /java/sca/itest/distribution/calculator-rmi/build.xml | |
parent | 84ef34efa534032fbf89a7c1b30258a73c69a71b (diff) |
Separate the distribution itests to individual sample tests
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@741274 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | java/sca/itest/distribution/calculator-rmi/build.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/java/sca/itest/distribution/calculator-rmi/build.xml b/java/sca/itest/distribution/calculator-rmi/build.xml new file mode 100644 index 0000000000..b405f747ea --- /dev/null +++ b/java/sca/itest/distribution/calculator-rmi/build.xml @@ -0,0 +1,49 @@ +<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project name="itest-samples" default="run">
+
+ <echo>${JAVA_HOME}</echo>
+ <!--
+ compile and run each sample as though the user were running
+ samples from the binary distribution. Here we use ant targets
+ in the first instance but for some tests we may want to run
+ jars directly or fire up webapp containers and deploy wars. In other cases
+ we may need to run two samples together to provide reference and
+ service sides of the sample.
+ -->
+
+ <property name="distro.root" value="../../../distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT-dir/tuscany-sca-2.0-SNAPSHOT" />
+
+ <target name="run">
+
+ <property name="time.to.live" id="ttl" value="4000" />
+
+ <parallel>
+ <ant antfile="build.xml"
+ dir="${distro.root}/samples/calculator-rmi-service"/>
+ <sequential>
+ <sleep seconds="2"/>
+ <ant antfile="build.xml"
+ dir="${distro.root}/samples/calculator-rmi-reference"/>
+ </sequential>
+ </parallel>
+
+ </target>
+
+</project>
|