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 2006/08/01 12:29:38 UTC

svn commit: r427518 - /incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java

Author: antelder
Date: Tue Aug  1 03:29:37 2006
New Revision: 427518

URL: http://svn.apache.org/viewvc?rev=427518&view=rev
Log:
Change the JavaScript helloworld sample to allow a user specified name

Modified:
    incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java

Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java?rev=427518&r1=427517&r2=427518&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java Tue Aug  1 03:29:37 2006
@@ -27,6 +27,6 @@
         HelloWorldService helloWorldService = CurrentCompositeContext.getContext().locateService(HelloWorldService.class,
                 "HelloWorldComponent");
 
-        System.out.println(helloWorldService.sayHello("petra"));
+        System.out.println(helloWorldService.sayHello(args.length < 1 ? "world" : args[0]));
     }
 }



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