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/10 17:55:13 UTC
svn commit: r536895 - in /incubator/tuscany/java/sca/samples/binding-echo:
README build.xml
Author: slaws
Date: Thu May 10 08:55:12 2007
New Revision: 536895
URL: http://svn.apache.org/viewvc?view=rev&rev=536895
Log:
add java jar build
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=536895&r1=536894&r2=536895
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo/README (original)
+++ incubator/tuscany/java/sca/samples/binding-echo/README Thu May 10 08:55:12 2007
@@ -7,6 +7,19 @@
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
+
Sample Overview
---------------
This sample contains a implementation of an SCA binding that simply echoes back
@@ -41,7 +54,8 @@
follows
cd binding-echo
-ant
+ant compile
+ant
You should see the following output from the run target.
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=536895&r1=536894&r2=536895
==============================================================================
--- incubator/tuscany/java/sca/samples/binding-echo/build.xml (original)
+++ incubator/tuscany/java/sca/samples/binding-echo/build.xml Thu May 10 08:55:12 2007
@@ -17,7 +17,8 @@
* under the License.
-->
<project name="bining-echo" default="run">
- <property environment="env"/>
+ <property name="test.class" value="echo.EchoBindingClient" />
+ <property name="test.jar" value="sample-binding-echo.jar" />
<target name="init">
<mkdir dir="target/classes"/>
@@ -33,30 +34,34 @@
<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
</classpath>
</javac>
- <javac srcdir="src/test/java"
- destdir="target/classes"
- debug="on"
- source="1.5"
- target="1.5">
- <classpath>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- <exclude name="echo/EchoReferenceTestCase.java"/>
- <exclude name="echo/EchoServiceTestCase.java"/>
- </javac>
<copy todir="target/classes">
<fileset dir="src/main/resources"/>
</copy>
+ <jar destfile="target/${test.jar}" basedir="target/classes">
+ <manifest>
+ <attribute name="Main-Class" value="${test.class}" />
+ </manifest>
+ </jar>
</target>
- <target name="run" depends="compile">
- <java classname="echo.EchoBindingClient"
+ <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">
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org