You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2006/10/16 02:14:31 UTC

svn commit: r464328 - in /incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript: ./ README.txt pom.xml

Author: jboynes
Date: Sun Oct 15 17:14:30 2006
New Revision: 464328

URL: http://svn.apache.org/viewvc?view=rev&rev=464328
Log:
add helloworldJavaScript sample to branch

Added:
    incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/
      - copied from r464324, incubator/tuscany/java/samples/sca/helloworldJavaScript/
    incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt   (with props)
Modified:
    incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml

Added: incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt?view=auto&rev=464328
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt (added)
+++ incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt Sun Oct 15 17:14:30 2006
@@ -0,0 +1,34 @@
+Simple Calculator Sample
+========================
+
+This sample illustrates the use of an extension to support other implementation types.
+In this sample the component is implemented using a JavaScript script.
+
+Building
+--------
+
+To build and install the sample using Maven use:
+$ mvn install
+
+This will build the sample, package a JAR file for the composite and install it in your
+local maven repository for use by other samples.
+
+Running
+-------
+
+To unpack the distribution to run the sample use:
+$ mvn dependency:unpack
+
+The 1.0-incubator-M2 distribution will be unpacked to the target/distribution directory.
+
+To configure the extension, copy its jar file into the extensions directory.
+$ cp target/distribution/contrib/javascript-1.0-incubator-M2.jar target/distribution/extensions/.
+
+You can then run the sample using the launcher:
+$ java -jar target/distribution/bin/launcher.jar target/sample-helloworld-javascript.jar
+
+Modifying
+---------
+
+The source code for the sample is in the src/main/java directory.
+The XML for the SCA composite is in src/main/resouces/META-INF/sca/default.scdl
\ No newline at end of file

Propchange: incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml?view=diff&rev=464328&r1=464324&r2=464328
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml Sun Oct 15 17:14:30 2006
@@ -19,7 +19,7 @@
 -->
 <project>
     <parent>
-        <groupId>org.apache.tuscany.samples.sca</groupId>
+        <groupId>org.apache.tuscany.sca.samples</groupId>
         <artifactId>parent</artifactId>
         <version>1.0-incubator-M2-SNAPSHOT</version>
     </parent>
@@ -37,18 +37,18 @@
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>test</artifactId>
-            <version>${tuscanyVersion}</version>
-            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.tuscany.sca.services.containers</groupId>
             <artifactId>javascript</artifactId>
-            <version>${tuscanyVersion}</version>
+            <version>${scaVersion}</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
+        <defaultGoal>install</defaultGoal>
+        <finalName>${artifactId}</finalName>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org