You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2007/05/16 10:33:53 UTC
svn commit: r538476 - in
/incubator/tuscany/java/sca/samples/implementation-crud: README build.xml
implementation-crud.png implementation-crud.svg
src/test/java/crud/CRUDClient.java
Author: slaws
Date: Wed May 16 01:33:48 2007
New Revision: 538476
URL: http://svn.apache.org/viewvc?view=rev&rev=538476
Log:
Move the application code to the implementation-crud-client sample
TUSCANY-1287
Removed:
incubator/tuscany/java/sca/samples/implementation-crud/implementation-crud.png
incubator/tuscany/java/sca/samples/implementation-crud/implementation-crud.svg
incubator/tuscany/java/sca/samples/implementation-crud/src/test/java/crud/CRUDClient.java
Modified:
incubator/tuscany/java/sca/samples/implementation-crud/README
incubator/tuscany/java/sca/samples/implementation-crud/build.xml
Modified: incubator/tuscany/java/sca/samples/implementation-crud/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/implementation-crud/README?view=diff&rev=538476&r1=538475&r2=538476
==============================================================================
--- incubator/tuscany/java/sca/samples/implementation-crud/README (original)
+++ incubator/tuscany/java/sca/samples/implementation-crud/README Wed May 16 01:33:48 2007
@@ -7,19 +7,9 @@
general instructions about building and running samples. Take a look there
first.
-If you just want to run it to see what happens open a command prompt, navigate
-to this sample directory and do:
-
-ant
-
-OR if you don't have ant, on Windows do
-
-java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-implementation-crud.jar crud.CRUDClient
-
-and on *nix do
-
-java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-implementation-crud.jar crud.CRUDClient
-
+If you want to try out the crud implementation type that this sample provides
+please see the implementation-crud-client sample that provides the necessary
+client code to bring up an application that uses this implementation-crud
Sample Overview
---------------
@@ -40,51 +30,29 @@
with the SCA runtime
crud.provider/ - runtime implementation
resources/
- crud.composite - the SCA assembly for this sample
- test/
- java/
- crud/
- CRUDClient.java - used when Ant is running the sample
- implementation-crud.png - a pictorial representation of the sample
- .composite file
+ crud.composite - the SCA assembly used during unit testing
+
build.xml - the Ant build file
pom.xml - the Maven build file
-TBD - more detail required on how this sample adds a new implementation to SCA
-
-Building And Running The Sample Using Ant
+Building The Sample Extension Using Ant
-----------------------------------------
-With the binary distribution the sample can be built and run using Ant as
+With the binary distribution the sample extension can be built using Ant as
follows
cd implementation-crud
ant compile
-ant
-
-You should see the following output from the run target.
-
-run:
- [java] Starting CRUDServiceComponent
- [java] create(ABC) in tmp
- [java] retrieve(0)
- [java] Result from create: ABC
- [java] update(0)
- [java] retrieve(0)
- [java] Result from update: EFG
- [java] delete(0)
- [java] retrieve(0)
- [java] Result from delete: null
- [java] Stopping CRUDServiceComponent
-Building And Running The Sample Using Maven
+Building The Sample Using Maven
-------------------------------------------
-With either the binary or source distributions the sample can be built and run
+With either the binary or source distributions the sample can be built
using Maven as follows.
cd implementation-crud
mvn
-You should see the following output from the test phase.
+Maven will also test that the sample extension built properly. You should see
+the following output from the test phase.
-------------------------------------------------------
T E S T S
Modified: incubator/tuscany/java/sca/samples/implementation-crud/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/implementation-crud/build.xml?view=diff&rev=538476&r1=538475&r2=538476
==============================================================================
--- incubator/tuscany/java/sca/samples/implementation-crud/build.xml (original)
+++ incubator/tuscany/java/sca/samples/implementation-crud/build.xml Wed May 16 01:33:48 2007
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
-->
-<project name="implementation-crud" default="run">
+<project name="implementation-crud" default="compile">
<property name="test.class" value="crud.CRUDClient" />
<property name="test.jar" value="sample-implementation-crud.jar" />
@@ -53,27 +53,7 @@
</manifest>
</jar>
</target>
-
- <target name="run-classes">
- <java classname="${test.class}"
- fork="true">
- <classpath>
- <pathelement path="target/classes"/>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- </java>
- </target>
-
- <target name="run">
- <java classname="${test.class}"
- fork="true">
- <classpath>
- <pathelement path="target/${test.jar}"/>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- </java>
- </target>
-
+
<target name="clean">
<delete quiet="true" includeemptydirs="true">
<fileset dir="target"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org