tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r812444 - in /tuscany/sandbox/travelsample/launchers: jumpstart-launcher/ jumpstart/ jumpstart/src/main/java/scatours/ jumpstart/src/test/java/scatours/
Date Tue, 08 Sep 2009 10:34:18 GMT
Author: nash
Date: Tue Sep  8 10:34:18 2009
New Revision: 812444

URL: http://svn.apache.org/viewvc?rev=812444&view=rev
Log:
Apply new naming convention to the Jumpstart launcher

Added:
    tuscany/sandbox/travelsample/launchers/jumpstart/
      - copied from r812410, tuscany/sandbox/travelsample/launchers/jumpstart-launcher/
    tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java
      - copied, changed from r812410, tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/main/java/scatours/LaunchJumpstartNode.java
    tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java
      - copied, changed from r812410, tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/test/java/scatours/NodeTestCase.java
Removed:
    tuscany/sandbox/travelsample/launchers/jumpstart-launcher/
    tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/LaunchJumpstartNode.java
    tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/NodeTestCase.java
Modified:
    tuscany/sandbox/travelsample/launchers/jumpstart/build.xml
    tuscany/sandbox/travelsample/launchers/jumpstart/pom.xml

Modified: tuscany/sandbox/travelsample/launchers/jumpstart/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/jumpstart/build.xml?rev=812444&r1=812410&r2=812444&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/jumpstart/build.xml (original)
+++ tuscany/sandbox/travelsample/launchers/jumpstart/build.xml Tue Sep  8 10:34:18 2009
@@ -17,7 +17,7 @@
  * under the License.
 -->
 
-<project name="scatours-jumpstart-launcher" default="compile">
+<project name="scatours-launcher-jumpstart" default="compile">
     <property environment="env"/> 
 
     <target name="compile">
@@ -28,15 +28,15 @@
                 <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </javac>
-        <jar destfile="target/scatours-jumpstart-launcher.jar" basedir="target/classes">
+        <jar destfile="target/scatours-launcher-jumpstart.jar" basedir="target/classes">
             <manifest>
-                <attribute name="Main-Class" value="scatours.LaunchNode"/>
+                <attribute name="Main-Class" value="scatours.JumpstartLauncher"/>
             </manifest>
         </jar>
     </target>
 
     <target name="run">
-        <java classname="scatours.LaunchNode" fork="true">
+        <java classname="scatours.JumpstartLauncher" fork="true">
             <classpath>
                 <pathelement location="target/classes"/>
                 <pathelement location="${env.TUSCANY}/lib/tuscany-sca-manifest.jar"/>

Modified: tuscany/sandbox/travelsample/launchers/jumpstart/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/jumpstart/pom.xml?rev=812444&r1=812410&r2=812444&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/jumpstart/pom.xml (original)
+++ tuscany/sandbox/travelsample/launchers/jumpstart/pom.xml Tue Sep  8 10:34:18 2009
@@ -25,7 +25,7 @@
         <version>1.6-SNAPSHOT</version>
         <!--relativePath>../../pom.xml</relativePath-->
     </parent><version>1.0-SNAPSHOT</version>
-    <artifactId>scatours-jumpstart-launcher</artifactId>
+    <artifactId>scatours-launcher-jumpstart</artifactId>
     <name>Apache Tuscany SCA Tours Jump Start Launcher</name>
 
     <dependencies>

Copied: tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java
(from r812410, tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/main/java/scatours/LaunchJumpstartNode.java)
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java?p2=tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java&p1=tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/main/java/scatours/LaunchJumpstartNode.java&r1=812410&r2=812444&rev=812444&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/main/java/scatours/LaunchJumpstartNode.java
(original)
+++ tuscany/sandbox/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java
Tue Sep  8 10:34:18 2009
@@ -24,30 +24,25 @@
 import org.apache.tuscany.sca.node.SCANode;
 import org.apache.tuscany.sca.node.SCANodeFactory;
 
-public class LaunchJumpstartNode {
+public class JumpstartLauncher {
 
     public static void main(String[] args) throws Exception {
-        try {
-            SCAContribution gvtContribution = 
-              new SCAContribution("introducing-trips", 
-                  "../../contributions/introducing-trips/target/classes");
-            
-            SCANode node = SCANodeFactory.newInstance().
-               createSCANode("trips.composite", 
-                             gvtContribution);
-            
-            node.start();
+        SCAContribution gvtContribution = 
+          new SCAContribution("introducing-trips", 
+              "../../contributions/introducing-trips/target/classes");
+        
+        SCANode node = SCANodeFactory.newInstance().
+           createSCANode("trips.composite", 
+                         gvtContribution);
+        
+        node.start();
 
-            Trips tripProvider = ((SCAClient)node).getService(Trips.class, 
-                                                              "TripProvider/Trips");
-            
-            System.out.println("Trip boooking code = " + 
-                               tripProvider.checkAvailability("FS1APR4", 2));
+        Trips tripProvider = ((SCAClient)node).getService(Trips.class, 
+                                                          "TripProvider/Trips");
+        
+        System.out.println("Trip boooking code = " + 
+                           tripProvider.checkAvailability("FS1APR4", 2));
 
-            node.stop();
-            
-        } catch (Throwable th) {
-            th.printStackTrace();
-        }
+        node.stop();
     }
 }

Copied: tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java
(from r812410, tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/test/java/scatours/NodeTestCase.java)
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java?p2=tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java&p1=tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/test/java/scatours/NodeTestCase.java&r1=812410&r2=812444&rev=812444&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/launchers/jumpstart-launcher/src/test/java/scatours/NodeTestCase.java
(original)
+++ tuscany/sandbox/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java
Tue Sep  8 10:34:18 2009
@@ -29,7 +29,7 @@
 /**
  * Tests the Jump Start scenario
  */
-public class NodeTestCase {
+public class JumpstartTestCase {
 
     private SCANode node;
 



Mime
View raw message