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/02 12:32:39 UTC

svn commit: r534377 - /incubator/tuscany/java/sca/samples/calculator/build.xml

Author: slaws
Date: Wed May  2 03:32:38 2007
New Revision: 534377

URL: http://svn.apache.org/viewvc?view=rev&rev=534377
Log:
first pass ant build for sample

Added:
    incubator/tuscany/java/sca/samples/calculator/build.xml   (with props)

Added: incubator/tuscany/java/sca/samples/calculator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/calculator/build.xml?view=auto&rev=534377
==============================================================================
--- incubator/tuscany/java/sca/samples/calculator/build.xml (added)
+++ incubator/tuscany/java/sca/samples/calculator/build.xml Wed May  2 03:32:38 2007
@@ -0,0 +1,63 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<project name="sample-calculator" default="compile">
+    <property environment="env"/>
+	
+	<target name="init">
+        <mkdir dir="target/classes"/>
+    </target>
+	
+	<target name="compile" depends="init">
+	    <javac srcdir="src/main/java" 
+	    	   destdir="target/classes" 
+	    	   debug="on" 
+	           source="1.5" 
+	    	   target="1.5">
+	        <classpath>
+                <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </javac>
+	    <copy todir="target/classes">
+            <fileset dir="src/main/resources"/>
+        </copy>
+	    <copy todir="target/classes/META-INF">
+            <fileset dir="." includes="LICENSE.txt,NOTICE.txt"/>
+        </copy>
+	    <jar destfile="target/sample-calculator.jar" 
+	    	 basedir="target/classes">
+	        <manifest>
+                <attribute name="Main-Class" 
+                	       value="calculator.CalculatorClient"/>
+            </manifest>
+        </jar>
+    </target>
+	
+	<target name="run" depends="compile">
+	    <java jar="../../lib/tuscany-sca-manifest.jar" 
+	    	  fork="true">
+            <arg value="target/sample-calculator.jar"/>
+        </java>
+    </target>
+	
+	<target name="clean">
+	    <delete quiet="true" includeemptydirs="true">
+            <fileset dir="target"/>
+        </delete>
+    </target>
+</project>

Propchange: incubator/tuscany/java/sca/samples/calculator/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/samples/calculator/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/samples/calculator/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org