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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]