diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-07 09:49:11 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-07 09:49:11 +0000 |
commit | 80c3cba0f4df75e1ef6c2b80a70604d1ac8e545c (patch) | |
tree | efaf4a43adec1fef9b792245dfcfcb700a77a598 /sca-java-2.x/trunk | |
parent | 208e376881db1a48618ac9bcca34e9b162a5aa64 (diff) |
Playing with getting the sample an scripts working again to remind myself what the issues are
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@942044 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml b/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml index e13ec494b0..2f60aef864 100644 --- a/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml +++ b/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml @@ -16,10 +16,12 @@ * specific language governing permissions and limitations * under the License. --> -<project name="binding-ws-calculator" default="run"> - +<project name="binding-ws-calculator" default="run-jse"> + <property name="tuscany.home" value="../.."/> <property name="jar.name" value="sample-binding-ws-calculator.jar" /> <property name="main.class" value="sample.SampleClientImpl" /> + + <echo>${tuscany.home}</echo> <target name="init"> <delete quiet="true" includeemptydirs="true"> @@ -36,7 +38,7 @@ target="1.5" failonerror="true"> <classpath> - <fileset dir="../../modules"> + <fileset dir="${tuscany.home}/modules"> <include name="tuscany-sca-api-*.jar" /> <include name="tuscany-node-api-*.jar" /> </fileset> @@ -63,5 +65,31 @@ <arg value="target/${jar.name}"/> </java> </target> + + <target name="run-jse" depends="compile"> + <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" + fork="true" + failonerror="true"> + <classpath> + <pathelement location="${tuscany.home}/features/tuscany-sca-manifest.jar"/> + </classpath> + <arg value="-ttl"/> + <arg value="0"/> + <arg value="target/${jar.name}"/> + </java> + </target> + + <target name="run-osgi" depends="compile"> + <java classname="org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher" + fork="true" + failonerror="true"> + <classpath> + <pathelement location="${tuscany.home}/features/tuscany-sca-manifest.jar"/> + </classpath> + <arg value="-ttl"/> + <arg value="0"/> + <arg value="target/${jar.name}"/> + </java> + </target> </project> |