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 2010/05/07 11:49:12 UTC

svn commit: r942044 - /tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml

Author: slaws
Date: Fri May  7 09:49:11 2010
New Revision: 942044

URL: http://svn.apache.org/viewvc?rev=942044&view=rev
Log:
Playing with getting the sample an scripts working again to remind myself what the issues are

Modified:
    tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml

Modified: tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml?rev=942044&r1=942043&r2=942044&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml (original)
+++ tuscany/sca-java-2.x/trunk/samples/binding-ws-calculator/build.xml Fri May  7 09:49:11 2010
@@ -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>