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 18:00:35 UTC

svn commit: r536902 - in /incubator/tuscany/java/sca/samples/databinding-echo: README build.xml

Author: slaws
Date: Thu May 10 09:00:34 2007
New Revision: 536902

URL: http://svn.apache.org/viewvc?view=rev&rev=536902
Log:
add java jar build 

Modified:
    incubator/tuscany/java/sca/samples/databinding-echo/README
    incubator/tuscany/java/sca/samples/databinding-echo/build.xml

Modified: incubator/tuscany/java/sca/samples/databinding-echo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/databinding-echo/README?view=diff&rev=536902&r1=536901&r2=536902
==============================================================================
--- incubator/tuscany/java/sca/samples/databinding-echo/README (original)
+++ incubator/tuscany/java/sca/samples/databinding-echo/README Thu May 10 09:00:34 2007
@@ -8,6 +8,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-databinding-echo.jar echo.EchoDataBindingClient
+
+and on *nix do
+
+java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-databinding-echo.jar echo.EchoDataBindingClient
+
 Sample Overview
 ---------------
 If reference and service interfaces are the same in all but the formats of 
@@ -56,7 +69,8 @@
 follows
 
 cd databinding-echo
-ant 
+ant compile
+ant
 
 You should see the following output from the run target.
 

Modified: incubator/tuscany/java/sca/samples/databinding-echo/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/databinding-echo/build.xml?view=diff&rev=536902&r1=536901&r2=536902
==============================================================================
--- incubator/tuscany/java/sca/samples/databinding-echo/build.xml (original)
+++ incubator/tuscany/java/sca/samples/databinding-echo/build.xml Thu May 10 09:00:34 2007
@@ -17,7 +17,8 @@
  * under the License.    
 -->
 <project name="databinding-echo" default="run">
-    <property environment="env"/>
+    <property name="test.class" value="echo.EchoDataBindingClient" />
+	<property name="test.jar"   value="sample-databinding-echo.jar" />
 	
     <target name="init">
         <mkdir dir="target/classes"/>
@@ -49,10 +50,15 @@
         <copy todir="target/classes">
             <fileset dir="src/test/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.EchoDataBindingClient"
+    <target name="run-classes">
+        <java classname="${test.class}"
               fork="true">
             <classpath>
                 <pathelement path="target/classes"/>
@@ -60,6 +66,16 @@
             </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