summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml136
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml134
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml75
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml75
4 files changed, 413 insertions, 7 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
index 9d918970d0..5b5a4efb67 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
@@ -87,6 +87,8 @@
. <idlfile> the filename of the IDL file
. <javaclass> the filename of any Java class file that will be
generated by running this target for this IDL file
+ "add-implementation-web" Adds implementation.web support to the
+ installed Tuscany SCA binary distribution if not already there.
All other targets defined by this file (with names starting with "#")
are for internal use within this file and should not be used externally.
@@ -397,6 +399,130 @@
</junit>
</target>
+ <!-- check whether the Tuscany SCA version is 1.5.1 -->
+ <target name="#find-tuscany-1.5.1">
+ <fileset id="#tuscany-assembly-1.5.1" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.5.1.jar"/>
+ </fileset>
+ <condition property="#tuscany-version" value="1.5.1">
+ <resourcecount refid="#tuscany-assembly-1.5.1" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-repo" value="m2-ibiblio-rsync-repository">
+ <resourcecount refid="#tuscany-assembly-1.5.1" when="greater" count="0"/>
+ </condition>
+ </target>
+
+ <!-- check whether the Tuscany SCA version is 1.6-SNAPSHOT -->
+ <target name="#find-tuscany-1.6-SNAPSHOT" unless="#tuscany-version">
+ <fileset id="#tuscany-assembly-1.6-SNAPSHOT" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.6-SNAPSHOT.jar"/>
+ </fileset>
+ <condition property="#tuscany-version" value="1.6-SNAPSHOT">
+ <resourcecount refid="#tuscany-assembly-1.6-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-baseversion" value="1.6">
+ <resourcecount refid="#tuscany-assembly-1.6-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-repo" value="m2-snapshot-repository">
+ <resourcecount refid="#tuscany-assembly-1.6-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ </target>
+
+ <!-- check whether the Tuscany SCA version is 1.6 -->
+ <target name="#find-tuscany-1.6" unless="#tuscany-version">
+ <fileset id="#tuscany-assembly-1.6" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.6.jar"/>
+ </fileset>
+ <condition property="#tuscany-version" value="1.6">
+ <resourcecount refid="#tuscany-assembly-1.6" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-repo" value="m2-ibiblio-rsync-repository">
+ <resourcecount refid="#tuscany-assembly-1.6" when="greater" count="0"/>
+ </condition>
+ </target>
+
+ <!-- check whether the Tuscany SCA version is 1.7-SNAPSHOT -->
+ <target name="#find-tuscany-1.7-SNAPSHOT" unless="#tuscany-version">
+ <fileset id="#tuscany-assembly-1.7-SNAPSHOT" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.7-SNAPSHOT.jar"/>
+ </fileset>
+ <condition property="#tuscany-version" value="1.7-SNAPSHOT">
+ <resourcecount refid="#tuscany-assembly-1.7-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-baseversion" value="1.7">
+ <resourcecount refid="#tuscany-assembly-1.7-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ <condition property="#tuscany-repo" value="m2-snapshot-repository">
+ <resourcecount refid="#tuscany-assembly-1.7-SNAPSHOT" when="greater" count="0"/>
+ </condition>
+ </target>
+
+ <!-- find the Tuscany SCA version that matches the JAVA_HOME environment variable -->
+ <target name="#find-tuscany-version" depends="#find-tuscany-1.5.1, #find-tuscany-1.6-SNAPSHOT,
+ #find-tuscany-1.6, #find-tuscany-1.7-SNAPSHOT">
+ <fail unless="#tuscany-version">
+ Error: Unknown Tuscany version for JAVA_HOME environment variable.
+ </fail>
+ </target>
+
+ <!-- check whether the installed Tuscany SCA binary distribution includes implementation.web support -->
+ <target name="#check-implementation-web">
+ <fileset id="#implweb-before-copy" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-implementation-web-${#tuscany-version}.jar"/>
+ <include name="tuscany-implementation-web-runtime-${#tuscany-version}.jar"/>
+ </fileset>
+ <condition property="#has-implementation-web">
+ <resourcecount refid="#implweb-before-copy" when="equal" count="2"/>
+ </condition>
+ </target>
+
+ <!-- check whether the installed Tuscany SCA binary distribution is a snapshot -->
+ <target name="#check-tuscany-snapshot">
+ <condition property="#tuscany-snapshot">
+ <equals arg1="${#tuscany-repo}" arg2="m2-snapshot-repository"/>
+ </condition>
+ </target>
+
+ <!-- copy implementation.web support to the installed Tuscany SCA snapshot binary distribution -->
+ <target name="#copy-impl-web-snapshot" if="#tuscany-snapshot">
+ <xmlproperty>
+ <url url="http://people.apache.org/repo/${#tuscany-repo}/org/apache/tuscany/sca/tuscany-implementation-web/${#tuscany-version}/maven-metadata.xml"/>
+ </xmlproperty>
+ <copy todir="${env.TUSCANY_HOME}/modules" flatten="true">
+ <url url="http://people.apache.org/repo/${#tuscany-repo}/org/apache/tuscany/sca/tuscany-implementation-web/${#tuscany-version}/tuscany-implementation-web-${#tuscany-baseversion}-${metadata.versioning.snapshot.timestamp}-${metadata.versioning.snapshot.buildNumber}.jar"/>
+ <url url="http://people.apache.org/repo/${#tuscany-repo}/org/apache/tuscany/sca/tuscany-implementation-web-runtime/${#tuscany-version}/tuscany-implementation-web-runtime-${#tuscany-baseversion}-${metadata.versioning.snapshot.timestamp}-${metadata.versioning.snapshot.buildNumber}.jar"/>
+ </copy>
+ <!-- need to copy and move because of ant 1.7.1 bug when copying with tofile and url -->
+ <move file="${env.TUSCANY_HOME}/modules/tuscany-implementation-web-${#tuscany-baseversion}-${metadata.versioning.snapshot.timestamp}-${metadata.versioning.snapshot.buildNumber}.jar" tofile="${env.TUSCANY_HOME}/modules/tuscany-implementation-web-${#tuscany-version}.jar"/>
+ <move file="${env.TUSCANY_HOME}/modules/tuscany-implementation-web-runtime-${#tuscany-baseversion}-${metadata.versioning.snapshot.timestamp}-${metadata.versioning.snapshot.buildNumber}.jar" tofile="${env.TUSCANY_HOME}/modules/tuscany-implementation-web-runtime-${#tuscany-version}.jar"/>
+ </target>
+
+ <!-- copy implementation.web support to the installed Tuscany SCA non-snapshot binary distribution -->
+ <target name="#copy-impl-web-nonsnapshot" unless="#tuscany-snapshot">
+ <copy todir="${env.TUSCANY_HOME}/modules" flatten="true">
+ <url url="http://people.apache.org/repo/${#tuscany-repo}/org/apache/tuscany/sca/tuscany-implementation-web/${#tuscany-version}/tuscany-implementation-web-${#tuscany-version}.jar"/>
+ <url url="http://people.apache.org/repo/${#tuscany-repo}/org/apache/tuscany/sca/tuscany-implementation-web-runtime/${#tuscany-version}/tuscany-implementation-web-runtime-${#tuscany-version}.jar"/>
+ </copy>
+ </target>
+
+ <!-- copy implementation.web support to the installed Tuscany SCA binary distribution -->
+ <target name="#copy-implementation-web" depends="#check-tuscany-snapshot, #copy-impl-web-snapshot, #copy-impl-web-nonsnapshot"/>
+
+ <!-- add implementation.web support to the installed Tuscany SCA binary distribution if not already there -->
+ <target name="add-implementation-web" depends="#find-tuscany-version, #check-implementation-web" unless="#has-implementation-web">
+ <antcall target="#copy-implementation-web"/>
+ <fileset id="#implweb-after-copy" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-implementation-web-${#tuscany-version}.jar"/>
+ <include name="tuscany-implementation-web-runtime-${#tuscany-version}.jar"/>
+ </fileset>
+ <condition property="#implementation-web-copied">
+ <resourcecount refid="#implweb-after-copy" when="equal" count="2"/>
+ </condition>
+ <fail unless="#implementation-web-copied">
+ Error: Unable to download tuscany-implementation-web and tuscany-implementation-web-runtime jars.
+ </fail>
+ </target>
+
<!-- check whether there are any files in the webapp directory -->
<target name="#check-webapp">
<fileset id="#webappfiles" dir="src/main/webapp"/>
@@ -410,16 +536,12 @@
<!-- build a war file if there are files in the webapp directory -->
<target name="#package-war" if="#webapp">
- <fileset id="#tuscanyjars" dir="${env.TUSCANY_HOME}/modules">
- <include name="tuscany-node-api-*.jar"/>
- <include name="tuscany-node-launcher-*.jar"/>
- <include name="tuscany-sca-api-*.jar"/>
- <exclude name="tuscany-sca-api-extension-*.jar"/>
- </fileset>
+ <mkdir dir="target/lib"/>
+ <antcall target="copy-lib"/>
<war destfile="target/${ant.project.name}.war" webxml="src/main/webapp/WEB-INF/web.xml"
excludes="**/*.cbp">
<fileset dir="src/main/webapp"/>
- <lib refid="#tuscanyjars"/>
+ <lib dir="target/lib"/>
<classes dir="target/classes"/>
</war>
</target>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml
index a35dd7eeb5..7c3a55c530 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml
@@ -27,4 +27,138 @@
<param name="package" value="com.tuscanyscatours.payment.creditcard"/>
</antcall>
</target>
+
+ <target name="copy-lib">
+ <antcall target="add-implementation-web"/>
+ <copy todir="target/lib">
+ <fileset file="../creditcard-payment-jaxb/target/scatours-contribution-creditcard-payment-jaxb.jar"/>
+ <fileset refid="tuscany-modules"/>
+ <fileset refid="tuscany-dependencies"/>
+ </copy>
+ </target>
+
+ <fileset id="tuscany-modules" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.*.jar"/>
+ <include name="tuscany-assembly-xml-1.*.jar"/>
+ <include name="tuscany-assembly-xsd-1.*.jar"/>
+ <include name="tuscany-binding-jsonrpc-1.*.jar"/>
+ <include name="tuscany-binding-jsonrpc-runtime-1.*.jar"/>
+ <include name="tuscany-binding-sca-1.*.jar"/>
+ <include name="tuscany-binding-sca-xml-1.*.jar"/>
+ <include name="tuscany-binding-ws-1.*.jar"/>
+ <include name="tuscany-binding-ws-axis2-1.*.jar"/>
+ <include name="tuscany-binding-ws-axis2-policy-1.*.jar"/>
+ <include name="tuscany-binding-ws-wsdlgen-1.*.jar"/>
+ <include name="tuscany-binding-ws-xml-1.*.jar"/>
+ <include name="tuscany-contribution-1.*.jar"/>
+ <include name="tuscany-contribution-impl-1.*.jar"/>
+ <include name="tuscany-contribution-java-1.*.jar"/>
+ <include name="tuscany-contribution-jee-1.*.jar"/>
+ <include name="tuscany-contribution-namespace-1.*.jar"/>
+ <include name="tuscany-contribution-xml-1.*.jar"/>
+ <include name="tuscany-core-1.*.jar"/>
+ <include name="tuscany-core-databinding-1.*.jar"/>
+ <include name="tuscany-core-spi-1.*.jar"/>
+ <include name="tuscany-databinding-1.*.jar"/>
+ <include name="tuscany-databinding-axiom-1.*.jar"/>
+ <include name="tuscany-databinding-jaxb-1.*.jar"/>
+ <include name="tuscany-databinding-jaxb-axiom-1.*.jar"/>
+ <include name="tuscany-databinding-json-1.*.jar"/>
+ <include name="tuscany-definitions-1.*.jar"/>
+ <include name="tuscany-definitions-xml-1.*.jar"/>
+ <include name="tuscany-endpoint-1.*.jar"/>
+ <include name="tuscany-extensibility-1.*.jar"/>
+ <include name="tuscany-host-embedded-1.*.jar"/>
+ <include name="tuscany-host-http-1.*.jar"/>
+ <include name="tuscany-host-jetty-1.*.jar"/>
+ <include name="tuscany-host-webapp-1.*.jar"/>
+ <include name="tuscany-implementation-java-1.*.jar"/>
+ <include name="tuscany-implementation-java-runtime-1.*.jar"/>
+ <include name="tuscany-implementation-java-xml-1.*.jar"/>
+ <include name="tuscany-implementation-node-1.*.jar"/>
+ <include name="tuscany-implementation-web-1.*.jar"/>
+ <include name="tuscany-implementation-web-runtime-1.*.jar"/>
+ <include name="tuscany-interface-1.*.jar"/>
+ <include name="tuscany-interface-java-1.*.jar"/>
+ <include name="tuscany-interface-java-jaxws-1.*.jar"/>
+ <include name="tuscany-interface-java-xml-1.*.jar"/>
+ <include name="tuscany-interface-wsdl-1.*.jar"/>
+ <include name="tuscany-interface-wsdl-xml-1.*.jar"/>
+ <include name="tuscany-monitor-1.*.jar"/>
+ <include name="tuscany-node-api-1.*.jar"/>
+ <include name="tuscany-node-impl-1.*.jar"/>
+ <include name="tuscany-policy-1.*.jar"/>
+ <include name="tuscany-policy-security-1.*.jar"/>
+ <include name="tuscany-policy-xml-1.*.jar"/>
+ <include name="tuscany-policy-xml-ws-1.*.jar"/>
+ <include name="tuscany-sca-api-1.*.jar"/>
+ <include name="tuscany-sca-api-extension-1.*.jar"/>
+ <include name="tuscany-xsd-1.*.jar"/>
+ <include name="tuscany-xsd-xml-1.*.jar"/>
+ </fileset>
+
+ <fileset id="tuscany-dependencies" dir="${env.TUSCANY_HOME}/lib">
+ <include name="activation-1.1.jar"/>
+ <include name="annogen-0.1.0.jar"/>
+ <include name="asm-3.1.jar"/>
+ <include name="axiom-api-1.2.7.jar"/>
+ <include name="axiom-dom-1.2.7.jar"/>
+ <include name="axiom-impl-1.2.7.jar"/>
+ <include name="axis-ant-1.4.jar"/>
+ <include name="axis2-adb-1.4.1.jar"/>
+ <include name="axis2-codegen-1.4.1.jar"/>
+ <include name="axis2-java2wsdl-1.4.1.jar"/>
+ <include name="axis2-kernel-1.4.1.jar"/>
+ <include name="axis2-mtompolicy-1.4.1.jar"/>
+ <include name="backport-util-concurrent-3.1.jar"/>
+ <include name="cglib-nodep-2.2.jar"/>
+ <include name="common-2.2.3.jar"/>
+ <include name="commons-codec-1.3.jar"/>
+ <include name="commons-collections-3.1.jar"/>
+ <include name="commons-discovery-0.2.jar"/>
+ <include name="commons-fileupload-1.2.jar"/>
+ <include name="commons-httpclient-3.1.jar"/>
+ <include name="commons-io-1.4.jar"/>
+ <include name="commons-logging-1.1.1.jar"/>
+ <include name="dom4j-1.6.1.jar"/>
+ <include name="geronimo-activation_1.1_spec-1.0.1.jar"/>
+ <include name="geronimo-javamail_1.4_spec-1.2.jar"/>
+ <include name="geronimo-jms_1.1_spec-1.1.jar"/>
+ <include name="geronimo-stax-api_1.0_spec-1.0.1.jar"/>
+ <include name="httpcore-4.0-beta1.jar"/>
+ <include name="httpcore-nio-4.0-beta1.jar"/>
+ <include name="jaxb-api-2.1.jar"/>
+ <include name="jaxb-impl-2.1.7.jar"/>
+ <include name="jaxen-1.1.1.jar"/>
+ <include name="jaxws-api-2.1.jar"/>
+ <include name="jdom-1.0.jar"/>
+ <include name="jettison-1.0.1.jar"/>
+ <include name="jetty-6.1.7.jar"/>
+ <include name="jetty-util-6.1.7.jar"/>
+ <include name="json-rpc-1.0.jar"/>
+ <include name="jsr181-api-1.0-MR1.jar"/>
+ <include name="jsr250-api-1.0.jar"/>
+ <include name="junit-4.5.jar"/>
+ <include name="log4j-1.2.15.jar"/>
+ <include name="mail-1.4.jar"/>
+ <include name="mex-1.41-impl.jar"/>
+ <include name="neethi-2.0.4.jar"/>
+ <include name="opensaml-1.1.jar"/>
+ <include name="rampart-core-1.4.jar"/>
+ <include name="rampart-policy-1.4.jar"/>
+ <include name="rampart-trust-1.4.jar"/>
+ <include name="servlet-api-2.5.jar"/>
+ <include name="stax-api-1.0-2.jar"/>
+ <include name="woden-api-1.0M8.jar"/>
+ <include name="woden-impl-dom-1.0M8.jar"/>
+ <include name="wsdl4j-1.6.2.jar"/>
+ <include name="wss4j-1.5.4.jar"/>
+ <include name="wstx-asl-3.2.4.jar"/>
+ <include name="xalan-2.7.0.jar"/>
+ <include name="xercesImpl-2.8.1.jar"/>
+ <include name="xml-apis-1.3.03.jar"/>
+ <include name="xmlParserAPIs-2.6.0.jar"/>
+ <include name="XmlSchema-1.4.2.jar"/>
+ <include name="xmlsec-1.4.2.jar"/>
+ </fileset>
</project>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml
index 09bd0eb999..d1b0d955ac 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml
@@ -19,4 +19,79 @@
<project name="scatours-contribution-currency-jsp" default="compile">
<import file="../../antdefs.xml"/>
+
+ <target name="copy-lib">
+ <antcall target="add-implementation-web"/>
+ <copy todir="target/lib">
+ <fileset file="../currency/target/scatours-contribution-currency.jar"/>
+ <fileset refid="tuscany-modules"/>
+ <fileset refid="tuscany-dependencies"/>
+ </copy>
+ </target>
+
+ <fileset id="tuscany-modules" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.*.jar"/>
+ <include name="tuscany-assembly-xml-1.*.jar"/>
+ <include name="tuscany-assembly-xsd-1.*.jar"/>
+ <include name="tuscany-binding-sca-1.*.jar"/>
+ <include name="tuscany-binding-sca-xml-1.*.jar"/>
+ <include name="tuscany-contribution-1.*.jar"/>
+ <include name="tuscany-contribution-impl-1.*.jar"/>
+ <include name="tuscany-contribution-java-1.*.jar"/>
+ <include name="tuscany-contribution-jee-1.*.jar"/>
+ <include name="tuscany-contribution-namespace-1.*.jar"/>
+ <include name="tuscany-contribution-xml-1.*.jar"/>
+ <include name="tuscany-core-1.*.jar"/>
+ <include name="tuscany-core-databinding-1.*.jar"/>
+ <include name="tuscany-core-spi-1.*.jar"/>
+ <include name="tuscany-databinding-1.*.jar"/>
+ <include name="tuscany-databinding-jaxb-1.*.jar"/>
+ <include name="tuscany-definitions-1.*.jar"/>
+ <include name="tuscany-definitions-xml-1.*.jar"/>
+ <include name="tuscany-endpoint-1.*.jar"/>
+ <include name="tuscany-extensibility-1.*.jar"/>
+ <include name="tuscany-host-embedded-1.*.jar"/>
+ <include name="tuscany-host-http-1.*.jar"/>
+ <include name="tuscany-host-webapp-1.*.jar"/>
+ <include name="tuscany-implementation-java-1.*.jar"/>
+ <include name="tuscany-implementation-java-runtime-1.*.jar"/>
+ <include name="tuscany-implementation-java-xml-1.*.jar"/>
+ <include name="tuscany-implementation-node-1.*.jar"/>
+ <include name="tuscany-implementation-web-1.*.jar"/>
+ <include name="tuscany-implementation-web-runtime-1.*.jar"/>
+ <include name="tuscany-interface-1.*.jar"/>
+ <include name="tuscany-interface-java-1.*.jar"/>
+ <include name="tuscany-interface-java-jaxws-1.*.jar"/>
+ <include name="tuscany-interface-java-xml-1.*.jar"/>
+ <include name="tuscany-monitor-1.*.jar"/>
+ <include name="tuscany-node-api-1.*.jar"/>
+ <include name="tuscany-node-impl-1.*.jar"/>
+ <include name="tuscany-policy-1.*.jar"/>
+ <include name="tuscany-policy-xml-1.*.jar"/>
+ <include name="tuscany-sca-api-1.*.jar"/>
+ <include name="tuscany-sca-api-extension-1.*.jar"/>
+ <include name="tuscany-xsd-1.*.jar"/>
+ </fileset>
+
+ <fileset id="tuscany-dependencies" dir="${env.TUSCANY_HOME}/lib">
+ <include name="activation-1.1.jar"/>
+ <include name="asm-3.1.jar"/>
+ <include name="axiom-api-1.2.7.jar"/>
+ <include name="axiom-impl-1.2.7.jar"/>
+ <include name="cglib-nodep-2.2.jar"/>
+ <include name="common-2.2.3.jar"/>
+ <include name="commons-logging-1.1.1.jar"/>
+ <include name="geronimo-activation_1.1_spec-1.0.1.jar"/>
+ <include name="geronimo-javamail_1.4_spec-1.2.jar"/>
+ <include name="geronimo-stax-api_1.0_spec-1.0.1.jar"/>
+ <include name="jaxb-api-2.1.jar"/>
+ <include name="jaxb-impl-2.1.7.jar"/>
+ <include name="jaxen-1.1.1.jar"/>
+ <include name="jaxws-api-2.1.jar"/>
+ <include name="jsr181-api-1.0-MR1.jar"/>
+ <include name="jsr250-api-1.0.jar"/>
+ <include name="stax-api-1.0-2.jar"/>
+ <include name="wstx-asl-3.2.4.jar"/>
+ <include name="XmlSchema-1.4.2.jar"/>
+ </fileset>
</project>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml
index 7c36a78b34..23edaad6a6 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml
@@ -22,4 +22,79 @@
<path id="compile-path">
<pathelement path="../currency/target/scatours-contribution-currency.jar"/>
</path>
+
+ <target name="copy-lib">
+ <antcall target="add-implementation-web"/>
+ <copy todir="target/lib">
+ <fileset file="../currency/target/scatours-contribution-currency.jar"/>
+ <fileset refid="tuscany-modules"/>
+ <fileset refid="tuscany-dependencies"/>
+ </copy>
+ </target>
+
+ <fileset id="tuscany-modules" dir="${env.TUSCANY_HOME}/modules">
+ <include name="tuscany-assembly-1.*.jar"/>
+ <include name="tuscany-assembly-xml-1.*.jar"/>
+ <include name="tuscany-assembly-xsd-1.*.jar"/>
+ <include name="tuscany-binding-sca-1.*.jar"/>
+ <include name="tuscany-binding-sca-xml-1.*.jar"/>
+ <include name="tuscany-contribution-1.*.jar"/>
+ <include name="tuscany-contribution-impl-1.*.jar"/>
+ <include name="tuscany-contribution-java-1.*.jar"/>
+ <include name="tuscany-contribution-jee-1.*.jar"/>
+ <include name="tuscany-contribution-namespace-1.*.jar"/>
+ <include name="tuscany-contribution-xml-1.*.jar"/>
+ <include name="tuscany-core-1.*.jar"/>
+ <include name="tuscany-core-databinding-1.*.jar"/>
+ <include name="tuscany-core-spi-1.*.jar"/>
+ <include name="tuscany-databinding-1.*.jar"/>
+ <include name="tuscany-databinding-jaxb-1.*.jar"/>
+ <include name="tuscany-definitions-1.*.jar"/>
+ <include name="tuscany-definitions-xml-1.*.jar"/>
+ <include name="tuscany-endpoint-1.*.jar"/>
+ <include name="tuscany-extensibility-1.*.jar"/>
+ <include name="tuscany-host-embedded-1.*.jar"/>
+ <include name="tuscany-host-http-1.*.jar"/>
+ <include name="tuscany-host-webapp-1.*.jar"/>
+ <include name="tuscany-implementation-java-1.*.jar"/>
+ <include name="tuscany-implementation-java-runtime-1.*.jar"/>
+ <include name="tuscany-implementation-java-xml-1.*.jar"/>
+ <include name="tuscany-implementation-node-1.*.jar"/>
+ <include name="tuscany-implementation-web-1.*.jar"/>
+ <include name="tuscany-implementation-web-runtime-1.*.jar"/>
+ <include name="tuscany-interface-1.*.jar"/>
+ <include name="tuscany-interface-java-1.*.jar"/>
+ <include name="tuscany-interface-java-jaxws-1.*.jar"/>
+ <include name="tuscany-interface-java-xml-1.*.jar"/>
+ <include name="tuscany-monitor-1.*.jar"/>
+ <include name="tuscany-node-api-1.*.jar"/>
+ <include name="tuscany-node-impl-1.*.jar"/>
+ <include name="tuscany-policy-1.*.jar"/>
+ <include name="tuscany-policy-xml-1.*.jar"/>
+ <include name="tuscany-sca-api-1.*.jar"/>
+ <include name="tuscany-sca-api-extension-1.*.jar"/>
+ <include name="tuscany-xsd-1.*.jar"/>
+ </fileset>
+
+ <fileset id="tuscany-dependencies" dir="${env.TUSCANY_HOME}/lib">
+ <include name="activation-1.1.jar"/>
+ <include name="asm-3.1.jar"/>
+ <include name="axiom-api-1.2.7.jar"/>
+ <include name="axiom-impl-1.2.7.jar"/>
+ <include name="cglib-nodep-2.2.jar"/>
+ <include name="common-2.2.3.jar"/>
+ <include name="commons-logging-1.1.1.jar"/>
+ <include name="geronimo-activation_1.1_spec-1.0.1.jar"/>
+ <include name="geronimo-javamail_1.4_spec-1.2.jar"/>
+ <include name="geronimo-stax-api_1.0_spec-1.0.1.jar"/>
+ <include name="jaxb-api-2.1.jar"/>
+ <include name="jaxb-impl-2.1.7.jar"/>
+ <include name="jaxen-1.1.1.jar"/>
+ <include name="jaxws-api-2.1.jar"/>
+ <include name="jsr181-api-1.0-MR1.jar"/>
+ <include name="jsr250-api-1.0.jar"/>
+ <include name="stax-api-1.0-2.jar"/>
+ <include name="wstx-asl-3.2.4.jar"/>
+ <include name="XmlSchema-1.4.2.jar"/>
+ </fileset>
</project>