You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/02/11 11:28:16 UTC

svn commit: r908910 - in /tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main: components/bin-modules.xml resources/ resources/build-clients.xml resources/build-launchers.xml resources/build-services.xml

Author: nash
Date: Thu Feb 11 10:28:13 2010
New Revision: 908910

URL: http://svn.apache.org/viewvc?rev=908910&view=rev
Log:
Add ant scripts to travel sample distribution directories to demonstrate alternative solution to TUSCANY-3460

Added:
    tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/   (with props)
    tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-clients.xml
    tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-launchers.xml
    tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-services.xml
Modified:
    tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml

Modified: tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml?rev=908910&r1=908909&r2=908910&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml (original)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml Thu Feb 11 10:28:13 2010
@@ -37,6 +37,24 @@
 
     </fileSets>
 
+    <files>
+        <file>
+            <source>src/main/resources/build-clients.xml</source>
+            <outputDirectory>clients</outputDirectory>
+            <destName>build.xml</destName>
+        </file>
+        <file>
+            <source>src/main/resources/build-launchers.xml</source>
+            <outputDirectory>launchers</outputDirectory>
+            <destName>build.xml</destName>
+        </file>
+        <file>
+            <source>src/main/resources/build-services.xml</source>
+            <outputDirectory>services</outputDirectory>
+            <destName>build.xml</destName>
+        </file>
+    </files>
+
     <dependencySets>
         <!-- Add all the Tuscany modules to the modules directory -->
         <dependencySet>

Propchange: tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 11 10:28:13 2010
@@ -0,0 +1,15 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders
+maven-eclipse.xml

Added: tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-clients.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-clients.xml?rev=908910&view=auto
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-clients.xml (added)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-clients.xml Thu Feb 11 10:28:13 2010
@@ -0,0 +1,50 @@
+<!--
+ * 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="scatours-distribution-clients">
+    <property environment="env"/> 
+
+    <target name="run-currency-converter-corba">
+        <java classname="scatours.CurrencyConverterCORBAClient" fork="true" failonerror="true">
+            <classpath location="scatours-client-currency-converter-corba.jar"/>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-jms">
+        <java classname="scatours.CurrencyConverterJMSClient" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-client-currency-converter-jms.jar"/>
+                <!-- The following is used to bring in the ActiveMQ runtime. -->
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-rmi">
+        <java classname="scatours.CurrencyConverterRMIClient" fork="true" failonerror="true">
+            <classpath location="scatours-client-currency-converter-rmi.jar"/>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-ws-jaxws">
+        <java classname="scatours.CurrencyConverterWSClient" fork="true" failonerror="true">
+            <classpath location="scatours-client-currency-converter-ws-jaxws.jar"/>
+        </java>
+    </target>
+</project>

Added: tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-launchers.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-launchers.xml?rev=908910&view=auto
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-launchers.xml (added)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-launchers.xml Thu Feb 11 10:28:13 2010
@@ -0,0 +1,311 @@
+<!--
+ * 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="scatours-distribution-launchers">
+    <property environment="env"/> 
+
+    <target name="run-blog-feed">
+        <java classname="scatours.BlogFeedLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-blog-feed.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-buildingblocks">
+        <java classname="scatours.BuildingBlocksLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-buildingblocks.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter">
+        <java classname="scatours.CurrencyConverterLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-currency-converter.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-corba">
+        <java classname="scatours.CurrencyConverterCORBALauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-currency-converter-corba.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-jms">
+        <java classname="scatours.CurrencyConverterJMSLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-currency-converter-jms.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-rmi">
+        <java classname="scatours.CurrencyConverterRMILauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-currency-converter-rmi.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-currency-converter-ws">
+        <java classname="scatours.CurrencyConverterWSLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-currency-converter-ws.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-databinding">
+        <java classname="scatours.DatabindingLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-databinding.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-feed-logger">
+        <java classname="scatours.FeedLoggerLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-feed-logger.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-fullapp">
+        <java classname="scatours.FullAppLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-fullapp.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-fullapp-domain">
+        <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher" fork="true" failonerror="true">
+            <arg value="../domainconfig/fullapp"/>
+            <classpath>
+                <fileset dir="${env.TUSCANY_HOME}/modules" includes="tuscany-node-launcher-*.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-fullapp-nodes">
+        <java classname="scatours.FullAppNodesLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-fullapp-nodes.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-help-pages">
+        <java classname="scatours.HelpPagesLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-help-pages.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-interaction">
+        <java classname="scatours.InteractionLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-interaction.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-introducing">
+        <java classname="scatours.IntroducingLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-introducing.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-introducing-client">
+        <java classname="scatours.IntroducingClientLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-introducing-client.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-introducing-domain">
+        <java classname="org.apache.tuscany.sca.node.launcher.DomainManagerLauncher" fork="true" failonerror="true">
+            <arg value="../domainconfig/introducing"/>
+            <classpath>
+                <fileset dir="${env.TUSCANY_HOME}/modules" includes="tuscany-node-launcher-*.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-introducing-tours">
+        <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true" failonerror="true">
+            <arg value="http://localhost:9990/node-config/ToursNode"/>
+            <classpath>
+                <fileset dir="${env.TUSCANY_HOME}/modules" includes="tuscany-node-launcher-*.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-introducing-trips">
+        <java classname="org.apache.tuscany.sca.node.launcher.NodeLauncher" fork="true" failonerror="true">
+            <arg value="http://localhost:9990/node-config/TripsNode"/>
+            <classpath>
+                <fileset dir="${env.TUSCANY_HOME}/modules" includes="tuscany-node-launcher-*.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-jumpstart">
+        <java classname="scatours.JumpstartLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-jumpstart.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-notification-corba">
+        <java classname="scatours.NotificationCORBALauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-notification-corba.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-notification-ejb">
+        <java classname="scatours.NotificationEJBLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-notification-ejb.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+                <fileset dir="${env.OPENEJB_HOME}/lib"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-notification-jms">
+        <java classname="scatours.NotificationJMSLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-notification-jms.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-notification-rmi">
+        <java classname="scatours.NotificationRMILauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-notification-rmi.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-notification-ws">
+        <java classname="scatours.NotificationWSLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-notification-ws.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-bpel">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-payment-bpel.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-groovy">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-payment-groovy.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-java">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-payment-java.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-java-policy">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-java-policy.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-spring">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-payment-spring.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-payment-spring-scatag">
+        <java classname="scatours.payment.PaymentLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-spring-scatag.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-policy">
+        <java classname="scatours.PolicyLauncher" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-launcher-policy.jar"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+</project>

Added: tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-services.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-services.xml?rev=908910&view=auto
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-services.xml (added)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/resources/build-services.xml Thu Feb 11 10:28:13 2010
@@ -0,0 +1,59 @@
+<!--
+ * 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="scatours-distribution-services">
+    <property environment="env"/> 
+
+    <target name="run-smsgateway-corba">
+        <java classname="scatours.smsgateway.SMSGatewayCORBAServiceBootstrap" fork="true" failonerror="true">
+            <classpath location="scatours-service-smsgateway-corba.jar"/>
+        </java>
+    </target>
+
+    <target name="run-smsgateway-ejb">
+        <java classname="com.tuscanyscatours.smsgateway.SMSGatewayEJBServiceBootstrap" fork="true" failonerror="true">
+            <classpath>
+                <pathelement location="scatours-service-smsgateway-ejb.jar"/>
+                <fileset dir="${env.OPENEJB_HOME}/lib"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-smsgateway-jaxws">
+        <java classname="com.tuscanyscatours.smsgateway.SMSGatewayServiceBootstrap" fork="true">
+            <classpath location="scatours-service-smsgateway-jaxws.jar"/>
+        </java>
+    </target>
+
+    <target name="run-smsgateway-jms">
+        <java classname="scatours.smsgateway.SMSGatewayJMSServiceBootstrap" fork="true">
+            <classpath>
+                <pathelement location="scatours-service-smsgateway-jms.jar"/>
+                <!-- The following is used to bring in the ActiveMQ runtime. -->
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="run-smsgateway-rmi">
+        <java classname="com.tuscanyscatours.smsgateway.SMSGatewayRMIServiceBootstrap" fork="true" failonerror="true">
+            <classpath location="scatours-service-smsgateway-rmi.jar"/>
+        </java>
+    </target>
+</project>