summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-05-14 13:15:25 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-05-14 13:15:25 +0000
commit1a1823d6d086cc1234317504e3b285e6c70a217c (patch)
tree3e8e65479efe6088edd7582719d4b5d2b5ecaefc /sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main
parent8b3c4c894fcae5cc38f6203ed9af1647c43fa221 (diff)
rename binding-ws-calculator to make it clear that it's a contribution (may decide to use subdirectories for this but seeing how we feel about this approach first)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@944245 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main')
-rw-r--r--sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java b/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java
index c9c113a2dc..7249e92f43 100644
--- a/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java
+++ b/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java
@@ -41,12 +41,12 @@ public class SampleJSELauncher {
if (args == null || args.length != 1){
System.out.println("Please provide the name of the sample contribution to run as a parameter");
System.out.println("Running binding-ws-calculator by default");
- contribution = "binding-ws-calculator";
+ contribution = "contribution-binding-ws-calculator";
} else {
contribution = args[0];
}
- if (contribution.equals("binding-ws-calculator")){
+ if (contribution.equals("contribution-binding-ws-calculator")){
launcher.launchBindingWSCalculator();
} else {
System.out.println("Sample contribution " + contribution + "not found");
@@ -65,11 +65,13 @@ public class SampleJSELauncher {
}
public void launchBindingWSCalculator(){
- Node node = startNode(new Contribution("c1", "../binding-ws-calculator/target/classes"));
+ Node node = startNode(new Contribution("c1", "../contribution-binding-ws-calculator/target/classes"));
CalculatorService calculator = node.getService(CalculatorService.class, "CalculatorServiceComponent");
// TODO - could use JUnit assertions but don't want to have to handle JUnit dependency from Ant script
- if (calculator.add(3, 2) != 5.0){
+ double result = calculator.add(3, 2);
+ System.out.println("3 + 2 = " + result);
+ if (result != 5.0){
throw new SampleLauncherException();
}