Author: antelder
Date: Thu Oct 26 04:51:46 2006
New Revision: 467966
URL: http://svn.apache.org/viewvc?view=rev&rev=467966
Log:
Tidy up javascript sample
Added:
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java
- copied, changed from r467955,
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java
Removed:
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java
Modified:
incubator/tuscany/branches/sca-java-M2/samples/pom.xml
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml
Modified: incubator/tuscany/branches/sca-java-M2/samples/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/pom.xml?view=diff&rev=467966&r1=467965&r2=467966
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-M2/samples/pom.xml Thu Oct 26 04:51:46
2006
@@ -42,7 +42,7 @@
<module>applications/bigbank</module>
<module>webapp/helloworldws-async</module>
<module>standalone/helloworldwsclient-async</module>
-
+ <module>standalone/helloworldJavaScript</module>
</modules>
<build>
Modified:
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=diff&rev=467966&r1=467965&r2=467966
==============================================================================
---
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt
(original)
+++
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/README.txt
Thu Oct 26 04:51:46 2006
@@ -1,5 +1,5 @@
-Simple Calculator Sample
-========================
+Simple Helloworld Sample using a JavaScript component
+=====================================================
This sample illustrates the use of an extension to support other
implementation types.
In this sample the component is implemented using a JavaScript script.
@@ -7,8 +7,8 @@
Building
--------
-To build and install the sample using Maven use:
-$ mvn install
+To build the sample using Maven use:
+$ mvn
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.
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=467966&r1=467965&r2=467966
==============================================================================
---
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml
(original)
+++
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/pom.xml
Thu Oct 26 04:51:46 2006
@@ -26,7 +26,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>sample-helloworld-javascript</artifactId>
<packaging>jar</packaging>
- <name>Tuscany JavaScript helloworld Sample</name>
+ <name>Tuscany JavaScript Helloworld Sample</name>
<description>A helloworld sample using a single SCA JavaScript
component</description>
<dependencies>
Copied:
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java
(from r467955,
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java)
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java?view=diff&rev=467966&p1=incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java&r1=467955&p2=incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java&r2=467966
==============================================================================
---
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java
(original)
+++
incubator/tuscany/branches/sca-java-M2/samples/standalone/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java
Thu Oct 26 04:51:46 2006
@@ -27,13 +27,14 @@
/**
* This shows how to test the HelloWorld service component.
*/
-public class HelloWorldRunner extends SCATestCase {
+public class HelloWorldTestCase extends SCATestCase {
private HelloWorldService helloWorldService;
protected void setUp() throws Exception {
URL scdl =
getClass().getClassLoader().getResource("META-INF/sca/js.system.scdl");
addExtension("JavaScriptContainer", scdl);
+ setApplicationSCDL(HelloWorldService.class,
"META-INF/sca/default.scdl");
super.setUp();
CompositeContext context = CurrentCompositeContext.getContext();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]