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 13:40:22 UTC
svn commit: r538545 - in /incubator/tuscany/java/sca/samples/binding-echo:
README binding-echo.png binding-echo.svg build.xml
src/test/java/echo/EchoBindingClient.java
Author: slaws
Date: Wed May 16 04:40:22 2007
New Revision: 538545
URL: http://svn.apache.org/viewvc?view=rev&rev=538545
Log:
move client code from here to binding-echo-appl
Removed:
incubator/tuscany/java/sca/samples/binding-echo/binding-echo.png
incubator/tuscany/java/sca/samples/binding-echo/binding-echo.svg
incubator/tuscany/java/sca/samples/binding-echo/src/test/java/echo/EchoBindingClient.java
Modified:
incubator/tuscany/java/sca/samples/binding-echo/README
incubator/tuscany/java/sca/samples/binding-echo/build.xml
Modified: incubator/tuscany/java/sca/samples/binding-echo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo/README?view=diff&rev=538545&r1=538544&r2=538545
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo/README (original)
+++ incubator/tuscany/java/sca/samples/binding-echo/README Wed May 16 04:40:22 2007
@@ -7,18 +7,10 @@
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-binding-echo.jar echo.EchoBindingClient
-
-and on *nix do
-
-java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-binding-echo.jar echo.EchoBindingClient
+If you want to try out the echo binding that this sample provides
+please see the binding-echo-appl sample that provides the necessary
+client and application code to bring up an application that uses this
+binding
Sample Overview
---------------
@@ -36,34 +28,19 @@
provider/ - The bindings runtime classes
server/ - A dummy server that the binding is plugged into
resources/
- EchoBinding.composite - the SCA assembly for this sample
- test/
- java/
- echo/
- EchoBindingClient.java - used when Ant is running the sample
- binding-echo.png - a pictorial representation of the sample
- .composite file
+ EchoBinding.composite - the SCA assembly used by the unit test
build.xml - the Ant build file
pom.xml - the Maven build file
-TBD - more detail required on how this sample adds a new binding to SCA
-
-Building And Running The Sample Using Ant
------------------------------------------
-With the binary distribution the sample can be built and run using Ant as
+Building The Sample Using Ant
+-----------------------------
+With the binary distribution the sample can be built using Ant as
follows
cd binding-echo
ant compile
-ant
-
-You should see the following output from the run target.
-run:
- [java] Returned message: foo
- [java] Echo reference = foo
- [java] Returned message: baa
- [java] Echo service = baa
+See the sample binding-echo-appl to run a sample that uses this binding.
Building And Running The Sample Using Maven
-------------------------------------------
@@ -73,7 +50,8 @@
cd binding-echo
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/binding-echo/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/binding-echo/build.xml?view=diff&rev=538545&r1=538544&r2=538545
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo/build.xml (original)
+++ incubator/tuscany/java/sca/samples/binding-echo/build.xml Wed May 16 04:40:22 2007
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
-->
-<project name="bining-echo" default="run">
+<project name="bining-echo" default="compile">
<property name="test.class" value="echo.EchoBindingClient" />
<property name="test.jar" value="sample-binding-echo.jar" />
@@ -43,26 +43,6 @@
</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">
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org