tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r427518 - /incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java
Date Tue, 01 Aug 2006 10:29:38 GMT
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


Mime
View raw message