You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/10/25 13:05:50 UTC

svn commit: r1027053 - /tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README

Author: nash
Date: Mon Oct 25 11:05:50 2010
New Revision: 1027053

URL: http://svn.apache.org/viewvc?rev=1027053&view=rev
Log:
Merge r999910 Update instructions for running this sample without needing to compile it first, and document the issue described in TUSCANY-1994

Modified:
    tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README

Modified: tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README?rev=1027053&r1=1027052&r2=1027053&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README (original)
+++ tuscany/sca-java-1.x/trunk/samples/helloworld-bpel/README Mon Oct 25 11:05:50 2010
@@ -9,32 +9,26 @@ first. 
 If you just want to run it to see what happens open a command prompt, navigate
 to this sample directory, and do 
 
-ant compile run
+ant run
 
 OR if you don't have ant, on Windows do
 
-mkdir target\classes
-mkdir target\wsdl2java-source
-java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
-java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
 unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip -d target\database
-javac -d target\classes -cp target\classes;..\..\lib\tuscany-sca-manifest.jar -sourcepath src\main\java;target\wsdl2java-source -target 1.5 -g -source 1.5 src\main\java\helloworld\BPELClient.java
-copy src\main\resources\* target\classes
+unzip target\sample-helloworld-bpel.jar -d target\classes
 java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient
 
 and on *nix do
 
-mkdir target/classes
-mkdir target/wsdl2java-source
-java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
-java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
 unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip -d target/database
-javac -d target/classes -cp target/classes;../../lib/tuscany-sca-manifest.jar -sourcepath src/main/java;target/wsdl2java-source -target 1.5 -g -source 1.5 src/main/java/helloworld/BPELClient.java
-cp src/main/resources/* target/classes
+unzip target/sample-helloworld-bpel.jar -d target/classes
 java -cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient
 
 The sample will start an embedded BPEL engine, deploy a process and invoke it.
 
+Unlike other samples that are run from a jar file, this sample is run from the
+target/classes directory because Tuscany doesn't currently support running
+a BPEL process file contained within a jar (see TUSCANY-1994).
+
 Sample Overview
 ---------------
 The sample provides a single component that is wired to a service with a 
@@ -101,7 +95,7 @@ Total time: 36 seconds     
 Building And Running The Sample Using Maven 
 -------------------------------------------
 With either the binary or source distributions the sample can be built and run 
-using Maven as follows. When using Maven, a simple test is present that exercise
+using Maven as follows. When using Maven, a simple test is present that exercises
 the same logic as the client to invoke the BPEl process.
 
 cd helloworld-bpel