diff options
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/samples/calculator/build.xml | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/java/sca/samples/calculator/build.xml b/java/sca/samples/calculator/build.xml index 36f733e12d..9d1276444e 100644 --- a/java/sca/samples/calculator/build.xml +++ b/java/sca/samples/calculator/build.xml @@ -19,33 +19,45 @@ <project name="calculator" default="compile"> - <property name="jar.name" value="sample-calculator.jar" /> - <property name="main.class" value="calculator.CalculatorClient" /> - - <target name="compile" depends="init"> - <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5"> - <classpath> - <pathelement location="../../modules/tuscany-sca-api-2.0-SNAPSHOT.jar"/> - <pathelement location="../../modules/tuscany-node-api-2.0-SNAPSHOT.jar"/> - </classpath> - </javac> - <copy todir="target/classes"> - <fileset dir="src/main/resources"/> - </copy> - <jar destfile="target/${jar.name}" basedir="target/classes"> - <manifest> - <attribute name="Main-Class" value="${main.class}" /> - </manifest> - </jar> - </target> - - <target name="init"> - <delete quiet="true" includeemptydirs="true"> - <fileset dir="target"/> - </delete> - <mkdir dir="target/classes"/> - </target> - -</project> + <property name="jar.name" value="sample-calculator.jar" /> + <property name="main.class" value="calculator.CalculatorClient" /> + + <target name="compile" depends="init"> + <javac srcdir="src/main/java" destdir="target/classes" debug="on" source="1.5" target="1.5"> + <classpath> + <pathelement location="../../modules/tuscany-sca-api-2.0-SNAPSHOT.jar"/> + <pathelement location="../../modules/tuscany-node-api-2.0-SNAPSHOT.jar"/> + </classpath> + </javac> + <copy todir="target/classes"> + <fileset dir="src/main/resources"/> + </copy> + <jar destfile="target/${jar.name}" basedir="target/classes"> + <manifest> + <attribute name="Main-Class" value="${main.class}" /> + </manifest> + </jar> + </target> + + <target name="init"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="target"/> + </delete> + <mkdir dir="target/classes"/> + </target> + + <target name="run" depends="compile"> + <java classname="org.apache.tuscany.sca.launcher.LauncherMain" + fork="true" + failonerror="true"> + <classpath> + <pathelement location="../../bin/launcher.jar"/> + </classpath> + <arg value="unmanaged"/> + <arg value="target/${jar.name}"/> + </java> + </target> + +</project> |