You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2012/05/01 10:18:46 UTC

svn commit: r1332568 - in /tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps: README node.xml pom.xml

Author: antelder
Date: Tue May  1 08:18:46 2012
New Revision: 1332568

URL: http://svn.apache.org/viewvc?rev=1332568&view=rev
Log:
Update sample to use a node xml file so that it now works the same way as the other samples with a simple mvn tuscany:run

Added:
    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/node.xml
Modified:
    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/README
    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/pom.xml

Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/README?rev=1332568&r1=1332567&r2=1332568&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/README (original)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/README Tue May  1 08:18:46 2012
@@ -6,26 +6,13 @@ This sample extends the helloworld sampl
 The changes to the helloworld sample are:
 - update sample.HelloworldImpl class is updated to use the Apache Commons Lang 3.0 WordUtils utility 
 - the Maven build is updated to use the Assembly plugin to create a ZIP archive of the contrubution which includes the dependency jars
+- use a node.xml file to configure the contributions used by the Tuscany maven plugin
 
-Presently the Tuscany Shell does not work "as is" to run this sample with "mvn tuscany:run". Instead you need to do the following in the helloworld-withdeps directory:
+As with all the getting-started samples you can run this sample with:
 
-- build the ZIP contribution
-    
-   mvn clean install
+   mvn tuscany:run 
 
-- start the Tuscany Shell
-
-   mvn tuscany:shell
-
-- install the sample contribution
-
-  install target\helloworld-withdeps-2.0-SNAPSHOT.zip
-
-- start the SCA composite
-
-  start helloworld-withdeps META-INF/helloworld.composite
-
-And then as with the original helloworld sample you may test the service by using the Shell "invoke" command:
+And then as with the original helloworld sample you may explore the state of the domain with Shell commands and test the service by using the Shell "invoke" command:
 
    invoke HelloworldComponent sayHello yourName
 

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/node.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/node.xml?rev=1332568&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/node.xml (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/node.xml Tue May  1 08:18:46 2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.
+-->
+<node xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+    xmlns="http://tuscany.apache.org/xmlns/sca/1.1"
+    xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+    domain="uri:default">
+
+    <contribution location="target/helloworld-withdeps-2.0-SNAPSHOT.zip" startDeployables="true" />
+
+</node>
\ No newline at end of file

Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/pom.xml?rev=1332568&r1=1332567&r2=1332568&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/pom.xml (original)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-withdeps/pom.xml Tue May  1 08:18:46 2012
@@ -111,6 +111,9 @@
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-maven-plugin</artifactId>
             <version>${tuscany.version}</version>
+            <configuration>
+                <nodeXML>node.xml</nodeXML>
+            </configuration>
          </plugin>
 
       </plugins>