TUSCANY-2826 Sample READMEs have mistakes

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@742589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
beckerdo 2009-02-09 16:03:06 +00:00
parent b85ea7d848
commit 9cb79da1df
2 changed files with 12 additions and 12 deletions

View file

@ -118,15 +118,15 @@ this is:
on Windows
java -cp ..\..\lib\tuscany-sca-manifest.jar;target\<sample jar file> <sample runnable class>
java -cp ..\..\features\tuscany-sca-manifest.jar;target\<sample jar file> <sample runnable class>
for example : java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-calculator.jar calculator.CalculatorClient
for example : java -cp ..\..\features\tuscany-sca-manifest.jar;target\sample-calculator.jar calculator.CalculatorClient
on *nix
java -cp ../../lib/tuscany-sca-manifest.jar:target/<sample jar file> <sample runnable class>
java -cp ../../features/tuscany-sca-manifest.jar:target/<sample jar file> <sample runnable class>
for example : java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-calculator.jar calculator.CalculatorClient
for example : java -cp ../../features/tuscany-sca-manifest.jar:target/sample-calculator.jar calculator.CalculatorClient
You can use the compiled classes directly using
@ -137,15 +137,15 @@ The command line version of this is:
on Windows
java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes <sample runnable class>
java -cp ..\..\features\tuscany-sca-manifest.jar;target\classes <sample runnable class>
for example : java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes calculator.CalculatorClient
for example : java -cp ..\..\features\tuscany-sca-manifest.jar;target\classes calculator.CalculatorClient
on *nix
java -cp ../../lib/tuscany-sca-manifest.jar:target/classes <sample runnable class>
java -cp ../../features/tuscany-sca-manifest.jar:target/classes <sample runnable class>
for example : java -cp ../../lib/tuscany-sca-manifest.jar:target/classes calculator.CalculatorClient
for example : java -cp ../../features/tuscany-sca-manifest.jar:target/classes calculator.CalculatorClient
The class specified on the command of course depends on which sample you want to
run. In the examples we have used we are running the CalculatorClient from the calculator sample.
@ -218,8 +218,8 @@ In a new or existing workspace
src/main/resources
Configure the output folder to be
calculator/target
Configure the build path to include all of the jars provided in
lib
Configure the build path to include the manifest jar tuscany-sca-manifiest.jar provided in
features
If you select calculator.CalculatorClient.java and run as "Java Application" you should see
3 + 2=5.0
3 - 2=1.0

View file

@ -13,10 +13,10 @@ ant run
OR if you don't have ant, on Windows do
java -jar ..\..\features\tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ..\..\features\configuration\ -ttl 0 target\implementation-java-calculator.jar
java -jar ..\..\features\tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ..\..\features\configuration\ -ttl 0 target\sample-implementation-java-calculator.jar
and on *nix do
java -jar ../../features/tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ../../features/configuration/ -ttl 0 target/implementation-java-calculator.jar
java -jar ../../features/tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ../../features/configuration/ -ttl 0 target/sample-implementation-java-calculator.jar
Sample Overview
---------------