tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r895152 [1/2] - in /tuscany/sandbox/travelsample: ./ clients/ contributions/ contributions/payment-bpel/ contributions/trip/ distribution/ launchers/ launchers/blog-feed/ launchers/common/ launchers/currency-converter-corba/ launchers/curre...
Date Sat, 02 Jan 2010 09:24:45 GMT
Author: nash
Date: Sat Jan  2 09:24:41 2010
New Revision: 895152

URL: http://svn.apache.org/viewvc?rev=895152&view=rev
Log:
Add/fix ant scripts for contents of travel sample services and launchers directories (TUSCANY-3398)

Added:
    tuscany/sandbox/travelsample/build.xml
    tuscany/sandbox/travelsample/launchers/build.xml
    tuscany/sandbox/travelsample/launchers/common/build.xml
    tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/
    tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/
    tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/
    tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java
    tuscany/sandbox/travelsample/services/build.xml
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGateway.java
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayEJBServiceBootstrap.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGatewayEJBServiceBootstrap.java
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayImpl.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGatewayImpl.java
    tuscany/sandbox/travelsample/services/smsgateway-jms/src/main/java/scatours/JMSBrokerLauncher.java
      - copied unchanged from r892559, tuscany/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGateway.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayImpl.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGatewayImpl.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayRMIServiceBootstrap.java
      - copied, changed from r892559, tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGatewayRMIServiceBootstrap.java
Removed:
    tuscany/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGateway.java
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGatewayEJBServiceBootstrap.java
    tuscany/sandbox/travelsample/services/smsgateway-ejb/src/main/java/scatours/smsgateway/SMSGatewayImpl.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGateway.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGatewayImpl.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/src/main/java/scatours/smsgateway/SMSGatewayRMIServiceBootstrap.java
Modified:
    tuscany/sandbox/travelsample/antdefs.xml
    tuscany/sandbox/travelsample/clients/pom.xml
    tuscany/sandbox/travelsample/contributions/payment-bpel/build.xml
    tuscany/sandbox/travelsample/contributions/pom.xml
    tuscany/sandbox/travelsample/contributions/trip/build.xml
    tuscany/sandbox/travelsample/distribution/pom.xml
    tuscany/sandbox/travelsample/launchers/blog-feed/build.xml
    tuscany/sandbox/travelsample/launchers/currency-converter-corba/build.xml
    tuscany/sandbox/travelsample/launchers/currency-converter-jms/build.xml
    tuscany/sandbox/travelsample/launchers/currency-converter-rmi/build.xml
    tuscany/sandbox/travelsample/launchers/currency-converter-ws/build.xml
    tuscany/sandbox/travelsample/launchers/currency-converter/build.xml
    tuscany/sandbox/travelsample/launchers/databinding/build.xml
    tuscany/sandbox/travelsample/launchers/feed-logger/build.xml
    tuscany/sandbox/travelsample/launchers/fullapp-domain/build.xml
    tuscany/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java
    tuscany/sandbox/travelsample/launchers/fullapp-nodes/build.xml
    tuscany/sandbox/travelsample/launchers/fullapp/build.xml
    tuscany/sandbox/travelsample/launchers/help-pages/build.xml
    tuscany/sandbox/travelsample/launchers/interaction/build.xml
    tuscany/sandbox/travelsample/launchers/introducing-client/build.xml
    tuscany/sandbox/travelsample/launchers/introducing-domain/build.xml
    tuscany/sandbox/travelsample/launchers/introducing-tours/build.xml
    tuscany/sandbox/travelsample/launchers/introducing-trips/build.xml
    tuscany/sandbox/travelsample/launchers/introducing/build.xml
    tuscany/sandbox/travelsample/launchers/jumpstart/build.xml
    tuscany/sandbox/travelsample/launchers/notification-corba/build.xml
    tuscany/sandbox/travelsample/launchers/notification-ejb/build.xml
    tuscany/sandbox/travelsample/launchers/notification-jms/build.xml
    tuscany/sandbox/travelsample/launchers/notification-rmi/build.xml
    tuscany/sandbox/travelsample/launchers/notification-ws/build.xml
    tuscany/sandbox/travelsample/launchers/policy/build.xml
    tuscany/sandbox/travelsample/launchers/pom.xml
    tuscany/sandbox/travelsample/pom.xml
    tuscany/sandbox/travelsample/services/creditcard-payment-jaxws/build.xml
    tuscany/sandbox/travelsample/services/pom.xml
    tuscany/sandbox/travelsample/services/smsgateway-corba/build.xml
    tuscany/sandbox/travelsample/services/smsgateway-ejb/build.xml
    tuscany/sandbox/travelsample/services/smsgateway-jaxws/build.xml
    tuscany/sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java
    tuscany/sandbox/travelsample/services/smsgateway-jms/build.xml
    tuscany/sandbox/travelsample/services/smsgateway-jms/src/main/java/scatours/smsgateway/SMSGatewayJMSServiceBootstrap.java
    tuscany/sandbox/travelsample/services/smsgateway-rmi/build.xml
    tuscany/sandbox/travelsample/testdomain/build.xml

Modified: tuscany/sandbox/travelsample/antdefs.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/antdefs.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/antdefs.xml (original)
+++ tuscany/sandbox/travelsample/antdefs.xml Sat Jan  2 09:24:41 2010
@@ -29,47 +29,62 @@
      TUSCANY_HOME A directory containing the Tuscany binary distribution.
      JUNIT_JAR The location of the JUnit jar file.  The JUnit version used
        for testing these build files was JUnit 4.5.
+     TUSCANY_HOST_CORBA (only needed to run CORBA services) A directory
+       containing the Tuscany JSE CORBA host jars.
 
    This file defines the following targets that can be used on the
    ant command that invokes the build.xml file:
-     <compile> Compiles any Java source files that don't have an up-to-date
+     "compile" Compiles any Java source files that don't have an up-to-date
        class file, and copies any files in or under the resource directory.
        If the build.xml file contains a <path> element with the id
        "compile-path", the contents of this path are added to the compiler's
        classpath.  Also invokes the following targets:
-       . <wsdljava> (defined in the build.xml file) if there are any
+       . "wsdljava" (defined in the build.xml file) if there are any
            .wsdl files in or under the resource directory
-       . <test> if there are any files in or under the src/test/java
+       . "idljava" (defined in the build.xml file) if there are any
+           .idl files in or under the resource directory
+       . "test" if there are any files in or under the src/test/java
            directory
-       . <package> if all previous steps completed successfully
-     <test> Compiles any Java unit test files that don't have an
-       up-to-date class file, copies any test resources in or under
-       the src/test/resources directory, and runs the unit tests.
-       If the build.xml file contains a <path> element with the id
-       "test-path", the contents of this path are added to the unit test
-       classpath.  If the build.xml file defines the "test-setup" property,
-       the <test-setup> target in the build.xml file is invoked after
-       copying the test resources.
-     <package> Creates a jar file containing the compiled Java class
+       . "package" if all previous steps completed successfully
+     "test" Compiles any Java unit test files that don't have an
+       up-to-date class file, copies any test resources in or under the
+       src/test/resources directory, and runs the unit tests.  If the
+       build.xml file contains a <path> element with the id "test-path",
+       the contents of this path are used for compiling and running the
+       unit tests.  In addition, the "compile-path" setting (if specified)
+       is used for running unit tests.  If the build.xml file defines the
+       "test-setup" property, the "testsetup" target in the build.xml
+       file is invoked after copying the test resources.
+     "package" Creates a jar file containing the compiled Java class
         files (excluding unit test code) and any files in or under the
         resource directory, unless the jar file is already up to date.
-     <clean> Deletes all the files produced by the build.
+        If the build.xml file defines a path with id "package-path", this
+        path is used for the Class-Path manifest entry.
+     "run" Runs the class specified by the "run-class" property in the
+        build.xml file if this property is defined.  If the build.xml file
+        contains a <path> element with id "run-path", the contents of this
+        path are added to the run classpath.
+     "clean" Deletes all the files produced by the build.
 
    This file also defines the following targets for invocation by <antcall>
-   within the <wsdljava> target in the build.xml file:
-     <wsimport> Generates Java code from a WSDL file (unless the Java
+   from the build.xml file:
+     "wsimport" Generates Java code from a WSDL file (unless the Java
        code is already up to date) by running the JDK wsimport command.
        Requires the following parameters:
        . <package> the Java package to use for generated code
        . <wsdlfile> the filename of the WSDL file
        . <javaclass> the filename of any Java class file that will be
-           generated by running wsimport on the WSDL file
-     <sdojavagen> Generates Java code from a WSDL file (unless the Java
+           generated by running this target on the WSDL file
+     "sdojavagen" Generates Java code from a WSDL file (unless the Java
        code is already up to date) by running the SDO XSD2JavaGenerator.
        Requires the same parameters as <wsimport>, plus the following:
        . <prefix> the prefix string for naming the generated factory
-   The build.xml file can make any number of calls to <wsimport> and/or
-   <sdojavagen>.
+     "idlj" Generates Java code from a CORBA IDL file (unless the Java
+       code is already up to date) by running the JDK idlj command.
+       Requires the following parameters:
+       . <idlfile> the filename of the IDL file
+       . <javaclass> the filename of any Java class file that will be
+           generated by running this target for this IDL file
 
    All other targets defined by this file (with names starting with "#")
    are for internal use from within this file and are not intended to
@@ -140,6 +155,43 @@
         </javac>
     </target>
 
+    <!-- check whether there are any CORBA IDL files in or under the resource directory -->
+    <target name="#find-idlfiles">
+        <fileset id="#allidl" dir="src/main/resources">
+            <include name="**/*.idl"/>
+        </fileset>
+        <condition property="#idlfiles">
+            <and>
+                <available file="src/main/resources" type="dir"/>
+                <resourcecount refid="#allidl" when="greater" count="0"/>
+            </and>
+        </condition>
+    </target>
+
+    <!-- call the idljava target in the build.xml file if required -->
+    <target name="#call-idljava" depends="#find-idlfiles" if="#idlfiles">
+        <antcall target="idljava"/>
+    </target>
+
+    <!-- check whether the IDL-generated Java code is already up to date -->
+    <target name="#idlcheck">
+        <condition property="#idl-uptodate">
+            <uptodate srcfile="src/main/resources/${idlfile}"
+                      targetfile="target/classes/${javaclass}"/>
+        </condition>
+    </target>
+
+    <!-- run the JDK idlj command if required, then compile the generated Java source -->
+    <target name="idlj" depends="#idlcheck" unless="#idl-uptodate">
+        <mkdir dir="target/idlj-source"/>
+        <exec executable="${java.home}/../bin/idlj">
+            <arg line="-fall -td target/idlj-source src/main/resources/${idlfile}"/>
+        </exec>
+        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+            <src path="target/idlj-source"/>
+        </javac>
+    </target>
+
     <!-- check whether there are any Java source files to compile -->
     <target name="#find-javafiles">
         <fileset id="#alljava" dir="src/main/java">
@@ -239,7 +291,7 @@
 
     <!-- perform additional test setup if required -->
     <target name="#test-setup" if="test-setup">
-        <antcall target="test-setup"/>
+        <antcall target="testsetup"/>
     </target>
 
     <!-- check whether a dependency path for the unit tests was specified -->
@@ -262,13 +314,14 @@
     </target>
 
     <!-- run the junit task -->
-    <target name="#run-junit" depends="#set-test-classpath, #default-test-classpath">
+    <target name="#run-junit" depends="#set-test-classpath, #default-test-classpath, #set-classpath, #default-classpath">
         <junit printsummary="no" haltonfailure="yes" dir="."
                fork="yes" forkmode="once">
             <classpath>
                 <pathelement location="target/test-classes"/>
-                <pathelement location="target/classes"/>
                 <path refid="#test-classpath"/>
+                <pathelement location="target/classes"/>
+                <path refid="#javac-classpath"/>
                 <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
                 <pathelement location="${env.JUNIT_JAR}"/>
             </classpath>
@@ -309,14 +362,42 @@
 
     <!-- build a jar file if there are no files in the webapp directory -->
     <target name="#package-jar" depends="#check-webapp" unless="#webapp">
-        <jar destfile="target/${ant.project.name}.jar"
-             basedir="target/classes"/>
+        <antcall target="#create-jar"/>
+    </target>
+
+    <!-- create a jar file with or without a Class-Path attribute -->
+    <target name="#create-jar" depends="#create-jar-path, #create-jar-nopath"/>
+
+    <!-- check whether a dependency path for the package target was specified -->
+    <target name="#check-package-path">
+        <condition property="#package-path">
+            <isreference refid="package-path"/>
+        </condition>
+    </target>
+
+    <!-- create a jar file with a Class-Path attribute -->
+    <target name="#create-jar-path" depends="#check-package-path" if="#package-path">
+        <property name="#parentdir" location=".."/>
+        <pathconvert property="#package-classpath" refid="package-path" pathsep=" " dirsep="/">
+            <map from="${#parentdir}" to="../.."/>
+        </pathconvert>
+        <jar destfile="target/${ant.project.name}.jar" basedir="target/classes">
+            <manifest>
+                <attribute name="Class-Path" value="${#package-classpath}"/>
+            </manifest>
+        </jar>
+    </target>
+
+    <!-- create a jar file without a Class-Path attribute -->
+    <target name="#create-jar-nopath" depends="#check-package-path" unless="#package-path">
+        <jar destfile="target/${ant.project.name}.jar" basedir="target/classes"/>
     </target>
 
     <!-- for external use on the ant command line -->
     <target name="compile">
         <mkdir dir="target/classes"/>
         <antcall target="#call-wsdljava"/>
+        <antcall target="#call-idljava"/>
         <antcall target="#compile-src"/>
         <antcall target="#copy-resources"/>
         <antcall target="#call-test"/>
@@ -341,7 +422,10 @@
     </target>
 
     <!-- for external use on the ant command line -->
-    <target name="package" depends="#package-war, #package-jar"/>
+    <target name="package" depends="#find-javafiles" if="#javafiles">
+        <antcall target="#package-war"/>
+        <antcall target="#package-jar"/>
+    </target>
 
     <!-- for external use on the ant command line -->
     <target name="clean">

Added: tuscany/sandbox/travelsample/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/build.xml?rev=895152&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/build.xml (added)
+++ tuscany/sandbox/travelsample/build.xml Sat Jan  2 09:24:41 2010
@@ -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="scatours" default="compile">
+
+    <target name="compile">
+        <antcall target="allsubdirs">
+            <param name="target" value="compile"/>
+        </antcall>
+    </target>
+
+    <target name="test">
+        <antcall target="allsubdirs">
+            <param name="target" value="test"/>
+        </antcall>
+    </target>
+
+    <target name="clean">
+        <antcall target="allsubdirs">
+            <param name="target" value="clean"/>
+        </antcall>
+    </target>
+
+    <target name="allsubdirs">
+        <!--
+        <ant dir="clients" target="${target}"/>
+        -->
+        <ant dir="contributions" target="${target}"/>
+        <ant dir="launchers" target="${target}"/>
+        <ant dir="services" target="${target}"/>
+    </target>
+
+</project>

Modified: tuscany/sandbox/travelsample/clients/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/clients/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/clients/pom.xml (original)
+++ tuscany/sandbox/travelsample/clients/pom.xml Sat Jan  2 09:24:41 2010
@@ -21,7 +21,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-scatours</artifactId>
+        <artifactId>scatours</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>

Modified: tuscany/sandbox/travelsample/contributions/payment-bpel/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/payment-bpel/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/payment-bpel/build.xml (original)
+++ tuscany/sandbox/travelsample/contributions/payment-bpel/build.xml Sat Jan  2 09:24:41 2010
@@ -39,7 +39,7 @@
     </target>
 
     <property name="test-setup" value="yes"/>
-    <target name="test-setup">
+    <target name="testsetup">
         <unzip dest="target/test-classes">
             <fileset dir="${env.TUSCANY_HOME}/lib">
                 <include name="ode-dao-jpa-ojpa-derby-*.zip"/>

Modified: tuscany/sandbox/travelsample/contributions/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/pom.xml (original)
+++ tuscany/sandbox/travelsample/contributions/pom.xml Sat Jan  2 09:24:41 2010
@@ -21,7 +21,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-scatours</artifactId>
+        <artifactId>scatours</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>

Modified: tuscany/sandbox/travelsample/contributions/trip/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/contributions/trip/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/contributions/trip/build.xml (original)
+++ tuscany/sandbox/travelsample/contributions/trip/build.xml Sat Jan  2 09:24:41 2010
@@ -22,7 +22,5 @@
     <path id="compile-path">
         <pathelement path="../common/target/scatours-contribution-common.jar"/>
     </path>
-    <path id="test-path">
-        <pathelement path="../common/target/scatours-contribution-common.jar"/>
-    </path>
+    <path id="test-path" refid="compile-path"/>
 </project>

Modified: tuscany/sandbox/travelsample/distribution/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/distribution/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/distribution/pom.xml (original)
+++ tuscany/sandbox/travelsample/distribution/pom.xml Sat Jan  2 09:24:41 2010
@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-scatours</artifactId>
+        <artifactId>scatours</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>

Modified: tuscany/sandbox/travelsample/launchers/blog-feed/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/blog-feed/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/blog-feed/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/blog-feed/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-blog-feed" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.BlogFeedLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Added: tuscany/sandbox/travelsample/launchers/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/build.xml?rev=895152&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/build.xml (added)
+++ tuscany/sandbox/travelsample/launchers/build.xml Sat Jan  2 09:24:41 2010
@@ -0,0 +1,67 @@
+<!--
+ * 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="scatours-launchers" default="compile">
+
+    <target name="compile">
+        <antcall target="allsubdirs">
+            <param name="target" value="compile"/>
+        </antcall>
+    </target>
+
+    <target name="test">
+        <antcall target="allsubdirs">
+            <param name="target" value="test"/>
+        </antcall>
+    </target>
+
+    <target name="clean">
+        <antcall target="allsubdirs">
+            <param name="target" value="clean"/>
+        </antcall>
+    </target>
+
+    <target name="allsubdirs">
+        <ant dir="common" target="${target}"/> <!--needed by blog-feed-->
+        <ant dir="blog-feed" target="${target}"/>
+        <ant dir="currency-converter" target="${target}"/>
+        <ant dir="currency-converter-corba" target="${target}"/>
+        <ant dir="currency-converter-jms" target="${target}"/>
+        <ant dir="currency-converter-rmi" target="${target}"/>
+        <ant dir="currency-converter-ws" target="${target}"/>
+        <ant dir="databinding" target="${target}"/>
+        <ant dir="feed-logger" target="${target}"/>
+        <ant dir="fullapp" target="${target}"/>
+        <ant dir="fullapp-domain" target="${target}"/>
+        <ant dir="fullapp-nodes" target="${target}"/>
+        <ant dir="help-pages" target="${target}"/>
+        <ant dir="interaction" target="${target}"/>
+        <ant dir="introducing" target="${target}"/>
+        <ant dir="introducing-client" target="${target}"/>
+        <ant dir="introducing-domain" target="${target}"/>
+        <ant dir="jumpstart" target="${target}"/>
+        <ant dir="notification-corba" target="${target}"/>
+        <ant dir="notification-ejb" target="${target}"/>
+        <ant dir="notification-jms" target="${target}"/>
+        <ant dir="notification-rmi" target="${target}"/>
+        <ant dir="notification-ws" target="${target}"/>
+        <ant dir="policy" target="${target}"/>
+    </target>
+
+</project>

Added: tuscany/sandbox/travelsample/launchers/common/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/common/build.xml?rev=895152&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/common/build.xml (added)
+++ tuscany/sandbox/travelsample/launchers/common/build.xml Sat Jan  2 09:24:41 2010
@@ -0,0 +1,22 @@
+<!--
+ * 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="scatours-launcher-common" default="compile">
+    <import file="../../antdefs.xml"/>
+</project>

Modified: tuscany/sandbox/travelsample/launchers/currency-converter-corba/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/currency-converter-corba/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/currency-converter-corba/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/currency-converter-corba/build.xml Sat Jan  2 09:24:41 2010
@@ -18,33 +18,27 @@
 -->
 
 <project name="scatours-launcher-currency-converter-corba" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
+    <!-- When running this sample, the tuscany-host-corba-jse and
+       tuscany-host-corba-jse-tns jars need to be present on the classpath.
+       These aren't included in tuscany-sca-manifest so they need to be
+       added to the classpath explicitly.  For some reason these jars aren't
+       part of the Tuscany binary distribution so you'll need to download
+       them from the maven repository http://repo1.maven.org/maven2 and set
+       the TUSCANY_HOST_CORBA environment variable to the name of your local
+       download directory. -->
     <target name="run">
         <java classname="scatours.CurrencyConverterCORBALauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY_HOST_CORBA}/tuscany-host-corba-jse-tns.jar"/>
-                <pathelement location="${env.TUSCANY_HOST_CORBA}/tuscany-host-corba-jse.jar"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.TUSCANY_HOST_CORBA}"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/currency-converter-jms/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/currency-converter-jms/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/currency-converter-jms/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/currency-converter-jms/build.xml Sat Jan  2 09:24:41 2010
@@ -18,23 +18,20 @@
 -->
 
 <project name="scatours-launcher-currency-converter-jms" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
+    <!-- Before invoking the "run" target, the JMS broker needs to be
+         started and running in a different process. -->
     <target name="run-broker">
         <java classname="scatours.JMSBrokerLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <!-- The following is used to bring in the ActiveMQ runtime. -->
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
@@ -42,16 +39,9 @@
     <target name="run">
         <java classname="scatours.CurrencyConverterJMSLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/currency-converter-rmi/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/currency-converter-rmi/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/currency-converter-rmi/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/currency-converter-rmi/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-currency-converter-rmi" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.CurrencyConverterRMILauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/currency-converter-ws/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/currency-converter-ws/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/currency-converter-ws/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/currency-converter-ws/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-currency-converter-ws" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.CurrencyConverterWSLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/currency-converter/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/currency-converter/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/currency-converter/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/currency-converter/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-currency-converter" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.CurrencyConverterLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/databinding/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/databinding/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/databinding/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/databinding/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-databinding" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.DatabindingLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/feed-logger/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/feed-logger/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/feed-logger/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/feed-logger/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-feed-logger" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.FeedLoggerLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/fullapp-domain/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/fullapp-domain/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/fullapp-domain/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/fullapp-domain/build.xml Sat Jan  2 09:24:41 2010
@@ -18,20 +18,37 @@
 -->
 
 <project name="scatours-launcher-fullapp-domain" default="run">
-    <property environment="env"/> 
+    <import file="../../antdefs.xml"/>
 
+    <!-- In Tuscany 1.5.1 the command-line launcher for the domain manager
+       is hard wired to use the current directory for the domain configuration,
+       so we use a custom launcher to override this setting using the domain
+       manager API.  Note that the classpath only includes the node launcher
+       jar which will bootstrap the rest of the Tuscany runtime. -->
     <target name="run">
-        <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher"
-              dir="." fork="true">
+        <java classname="scatours.FullAppDomainLauncher" fork="true">
             <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <fileset dir="${env.TUSCANY_HOME}/modules">
+                    <include name="tuscany-node-launcher-*.jar"/>
+                </fileset>
             </classpath>
-        	<arg value="./target/classes"/>
         </java>
     </target>
 
-    <target name="clean">
-        <delete dir="./target"/>
+    <!-- The "run-command" target runs the DomainManagerLauncher class
+       directly (as if it had been invoked from a command line) and passes
+       in the domain configuration directory as a command-line argument.
+       This only works for Tuscany versions greater than 1.5.1. -->
+    <target name="run-command">
+        <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher"
+              dir="." fork="true">
+            <classpath>
+                <fileset dir="${env.TUSCANY_HOME}/modules">
+                    <include name="tuscany-node-launcher-*.jar"/>
+                </fileset>
+            </classpath>
+        	<arg value=".\target\classes"/>
+        </java>
     </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java (original)
+++ tuscany/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java Sat Jan  2 09:24:41 2010
@@ -39,5 +39,6 @@
         } catch (IOException e) {
         }
 
+        dm.getClass().getMethod("stop").invoke(dm);
     }
 }

Modified: tuscany/sandbox/travelsample/launchers/fullapp-nodes/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/fullapp-nodes/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/fullapp-nodes/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/fullapp-nodes/build.xml Sat Jan  2 09:24:41 2010
@@ -17,37 +17,15 @@
  * under the License.
 -->
 
-<project name="scatours-launcher-fullapp-nodes" default="run">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src\main\java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-        <jar destfile="target/scatours-launcher-fullapp-nodes.jar" basedir="target/classes">
-            <manifest>
-                <attribute name="Main-Class" value="scatours.FullAppNodesLauncher"/>
-            </manifest>
-        </jar>
-    </target>
+<project name="scatours-launcher-fullapp-nodes" default="compile">
+    <import file="../../antdefs.xml"/>
 
     <target name="run">
         <java classname="scatours.FullAppNodesLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/fullapp/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/fullapp/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/fullapp/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/fullapp/build.xml Sat Jan  2 09:24:41 2010
@@ -18,39 +18,18 @@
 -->
 
 <project name="scatours-launcher-fullapp" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src\main\java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-        <copy todir="target/classes">
-            <fileset dir="src\main\resources"/>
-        </copy>
-        <jar destfile="target/scatours-launcher-fullapp.jar" basedir="target/classes">
-            <manifest>
-                <attribute name="Main-Class" value="scatours.FullAppLauncher"/>
-            </manifest>
-        </jar>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.FullAppLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-	
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/help-pages/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/help-pages/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/help-pages/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/help-pages/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-help-pages" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.HelpPagesLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/interaction/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/interaction/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/interaction/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/interaction/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-interaction" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.InteractionLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/introducing-client/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/introducing-client/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/introducing-client/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/introducing-client/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,14 @@
 -->
 
 <project name="scatours-launcher-introducing-client" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
 
     <target name="run">
         <java classname="scatours.IntroducingClientLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/introducing-domain/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/introducing-domain/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/introducing-domain/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/introducing-domain/build.xml Sat Jan  2 09:24:41 2010
@@ -18,19 +18,16 @@
 -->
 
 <project name="scatours-launcher-introducing-domain" default="run">
-    <property environment="env"/> 
+    <import file="../../antdefs.xml"/>
 
-    <target name="run">
+    <target name="run" depends="compile">
         <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher"
               dir="target/classes" fork="true">
             <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.TUSCANY_HOME}/modules">
+                    <include name="tuscany-node-launcher-*.jar"/>
+                </fileset>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete dir="./target"/>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/introducing-tours/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/introducing-tours/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/introducing-tours/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/introducing-tours/build.xml Sat Jan  2 09:24:41 2010
@@ -24,9 +24,10 @@
         <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
             <arg value="http://localhost:9990/node-config/ToursNode"/>
             <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.TUSCANY_HOME}/modules">
+                    <include name="tuscany-node-launcher-*.jar"/>
+                </fileset>
             </classpath>
         </java>
     </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/introducing-trips/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/introducing-trips/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/introducing-trips/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/introducing-trips/build.xml Sat Jan  2 09:24:41 2010
@@ -24,9 +24,10 @@
         <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true">
             <arg value="http://localhost:9990/node-config/TripsNode"/>
             <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.TUSCANY_HOME}/modules">
+                    <include name="tuscany-node-launcher-*.jar"/>
+                </fileset>
             </classpath>
         </java>
     </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/introducing/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/introducing/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/introducing/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/introducing/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-introducing" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.IntroducingLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/jumpstart/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/jumpstart/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/jumpstart/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/jumpstart/build.xml Sat Jan  2 09:24:41 2010
@@ -18,36 +18,18 @@
 -->
 
 <project name="scatours-launcher-jumpstart" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-        <jar destfile="target/scatours-launcher-jumpstart.jar" basedir="target/classes">
-            <manifest>
-                <attribute name="Main-Class" value="scatours.JumpstartLauncher"/>
-            </manifest>
-        </jar>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.JumpstartLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/notification-corba/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-corba/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-corba/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/notification-corba/build.xml Sat Jan  2 09:24:41 2010
@@ -18,39 +18,36 @@
 -->
 
 <project name="scatours-launcher-notification-corba" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
-
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
+
+    <!-- Before invoking the "run" target, both the CORBA nameserver and
+       the CORBA SMS Gateway service need to be started and running in
+       different processes. -->
     <target name="run-nameserver">
-        <exec executable="${env.JAVA_HOME}/bin/tnameserv">
-            <arg value="-ORBInitialPort"/>
-            <arg value="5080"/>
-        </exec>
+        <ant dir="../../services/smsgateway-corba" target="run-nameserver"/>
+    </target>
+    <target name="run-smsgateway">
+        <ant dir="../../services/smsgateway-corba" target="run"/>
     </target>
 
+    <!-- When running this sample, the tuscany-host-corba-jse jar needs to be
+       present on the classpath.  This isn't included in tuscany-sca-manifest
+       so it needs to be added to the classpath  explicitly.  For some reason
+       this jar isn't part of the Tuscany binary distribution so you'll need
+       to download it from the maven repository http://repo1.maven.org/maven2
+       and set the TUSCANY_HOST_CORBA environment variable to the name of
+       your local download directory. -->
     <target name="run">
         <java classname="scatours.NotificationCORBALauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY_HOST_CORBA}/tuscany-host-corba-jse.jar"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.TUSCANY_HOST_CORBA}"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/notification-ejb/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-ejb/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-ejb/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/notification-ejb/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,25 @@
 -->
 
 <project name="scatours-launcher-notification-ejb" default="compile">
-    <property environment="env"/> 
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
+    <!-- Before invoking the "run" target, the EJB server for the SMS Gateway EJB
+       needs to be started and running in a different process. -->
+    <target name="run-smsgateway">
+        <ant dir="../../services/smsgateway-ejb" target="run"/>
     </target>
 
     <target name="run">
         <java classname="scatours.NotificationEJBLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.OPENEJB_HOME}/lib"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/notification-jms/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-jms/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-jms/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/notification-jms/build.xml Sat Jan  2 09:24:41 2010
@@ -18,40 +18,28 @@
 -->
 
 <project name="scatours-launcher-notification-jms" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
-
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
+
+    <!-- Before invoking the "run" target, both the JMS broker and the
+       JMS implementation of the SMS gateway need to be started and running
+       in different processes. -->
     <target name="run-broker">
-        <java classname="scatours.JMSBrokerLauncher" fork="true">
-            <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </java>
+        <ant dir="../../services/smsgateway-jms" target="run-broker"/>
+    </target>
+    <target name="run-smsgateway">
+        <ant dir="../../services/smsgateway-jms" target="run"/>
     </target>
 
     <target name="run">
         <java classname="scatours.NotificationJMSLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/notification-rmi/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-rmi/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-rmi/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/notification-rmi/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,24 @@
 -->
 
 <project name="scatours-launcher-notification-rmi" default="compile">
-    <property environment="env"/> 
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
+    <!-- Before invoking the "run" target, the RMI server for the SMS Gateway
+       remote object needs to be started and running in a different process. -->
+    <target name="run-smsgateway">
+        <ant dir="../../services/smsgateway-rmi" target="run"/>
     </target>
 
     <target name="run">
         <java classname="scatours.NotificationRMILauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Added: tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java?rev=895152&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java (added)
+++ tuscany/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java Sat Jan  2 09:24:41 2010
@@ -0,0 +1,30 @@
+/*
+ * 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.    
+ */
+
+package com.tuscanyscatours.smsgateway;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+/**
+ * A gateway to send SMS messages.
+ */
+public interface SMSGateway extends Remote {
+    boolean sendSMS(String fromNumber, String toNumber, String text) throws RemoteException;
+}

Modified: tuscany/sandbox/travelsample/launchers/notification-ws/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/notification-ws/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/notification-ws/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/notification-ws/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-notification-ws" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.NotificationWSLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/policy/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/policy/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/policy/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/policy/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,18 @@
 -->
 
 <project name="scatours-launcher-policy" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../common/target/scatours-launcher-common.jar"/>
+    </path>
+    <path id="package-path" refid="compile-path"/>
 
     <target name="run">
         <java classname="scatours.PolicyLauncher" fork="true">
             <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/launchers/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/pom.xml (original)
+++ tuscany/sandbox/travelsample/launchers/pom.xml Sat Jan  2 09:24:41 2010
@@ -21,7 +21,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-scatours</artifactId>
+        <artifactId>scatours</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>

Modified: tuscany/sandbox/travelsample/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/pom.xml (original)
+++ tuscany/sandbox/travelsample/pom.xml Sat Jan  2 09:24:41 2010
@@ -24,10 +24,10 @@
         <artifactId>tuscany-sca</artifactId>
         <version>1.6-SNAPSHOT</version>
     </parent>
-    <artifactId>tuscany-scatours</artifactId>
+    <artifactId>scatours</artifactId>
     <packaging>pom</packaging>
     <version>1.0-SNAPSHOT</version>
-    <name>Apache Tuscany SCA Tours Assembly Examples</name>
+    <name>Apache Tuscany SCA Tours Travel Sample</name>
 
     <repositories>
         <repository>

Added: tuscany/sandbox/travelsample/services/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/services/build.xml?rev=895152&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/services/build.xml (added)
+++ tuscany/sandbox/travelsample/services/build.xml Sat Jan  2 09:24:41 2010
@@ -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="scatours-services" default="compile">
+
+    <target name="compile">
+        <antcall target="allsubdirs">
+            <param name="target" value="compile"/>
+        </antcall>
+    </target>
+
+    <target name="test">
+        <antcall target="allsubdirs">
+            <param name="target" value="test"/>
+        </antcall>
+    </target>
+
+    <target name="clean">
+        <antcall target="allsubdirs">
+            <param name="target" value="clean"/>
+        </antcall>
+    </target>
+
+    <target name="allsubdirs">
+        <ant dir="creditcard-payment-jaxws" target="${target}"/>
+        <ant dir="smsgateway-corba" target="${target}"/>
+        <ant dir="smsgateway-ejb" target="${target}"/>
+        <ant dir="smsgateway-jaxws" target="${target}"/>
+        <ant dir="smsgateway-jms" target="${target}"/>
+        <ant dir="smsgateway-rmi" target="${target}"/>
+    </target>
+
+</project>

Modified: tuscany/sandbox/travelsample/services/creditcard-payment-jaxws/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/services/creditcard-payment-jaxws/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/services/creditcard-payment-jaxws/build.xml (original)
+++ tuscany/sandbox/travelsample/services/creditcard-payment-jaxws/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,14 @@
 -->
 
 <project name="scatours-service-creditcard-payment-jaxws" default="compile">
-    <property environment="env"/> 
-
-    <target name="compile">
-        <mkdir dir="target/classes"/>
-        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
-            <src path="src/main/java"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
-    </target>
+    <import file="../../antdefs.xml"/>
 
+    <!-- The "run" target starts a JAX-WS service endpoint for a simple
+       credit card payment service.  This endpoint does not appear to be
+       used currently anywhere else in the travel application. -->
     <target name="run">
-        <java classname="creditcard.CreditCardServiceBootstrap" fork="true">
-            <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
+        <java classname="scatours.creditcard.CreditCardServiceBootstrap" fork="true">
+            <classpath location="target/${ant.project.name}.jar"/>
         </java>
     </target>
-
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
-    </target>
-
 </project>

Modified: tuscany/sandbox/travelsample/services/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/services/pom.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/services/pom.xml (original)
+++ tuscany/sandbox/travelsample/services/pom.xml Sat Jan  2 09:24:41 2010
@@ -21,7 +21,7 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-scatours</artifactId>
+        <artifactId>scatours</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>

Modified: tuscany/sandbox/travelsample/services/smsgateway-corba/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/services/smsgateway-corba/build.xml?rev=895152&r1=895151&r2=895152&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/services/smsgateway-corba/build.xml (original)
+++ tuscany/sandbox/travelsample/services/smsgateway-corba/build.xml Sat Jan  2 09:24:41 2010
@@ -18,31 +18,27 @@
 -->
 
 <project name="scatours-service-smsgateway-corba" 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"/>
-            <classpath>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </javac>
+    <target name="idljava">
+        <antcall target="idlj">
+            <param name="idlfile" value="sms-gateway.idl"/>
+            <param name="javaclass" value="scatours/smsgateway/SMSGatewayPOA.class"/>
+        </antcall>
     </target>
 
-    <target name="run">
-        <java classname="scatours.smsgateway.SMSGatewayCORBAServiceBootstrap" fork="true">
-            <classpath>
-                <pathelement location="target/classes"/>
-                <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
-            </classpath>
-        </java>
+    <!-- Before invoking the "run" target, the CORBA nameserver needs to be
+         started and running in a different process. -->
+    <target name="run-nameserver">
+        <exec executable="${env.JAVA_HOME}/bin/tnameserv">
+            <arg value="-ORBInitialPort"/>
+            <arg value="5080"/>
+        </exec>
     </target>
 
-    <target name="clean">
-        <delete includeemptydirs="true">
-            <fileset dir="target"/>
-        </delete>
+    <target name="run">
+        <java classname="scatours.smsgateway.SMSGatewayCORBAServiceBootstrap" fork="true">
+            <classpath location="target/${ant.project.name}.jar"/>
+       </java>
     </target>
-
 </project>



Mime
View raw message