diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-11 23:07:19 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-11 23:07:19 +0000 |
commit | 6fadbc9cd1fcf03d0b3630f772d91df149b70428 (patch) | |
tree | 32752e491abb97fc8ef4f246455e3b5fd2814862 /sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml | |
parent | 5559ef5edbf8d3616f7a4b497b2a459b0ee4082b (diff) |
Moving 1.x branches
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml')
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml b/sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml new file mode 100644 index 0000000000..d679827fb9 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.0.1/samples/helloworld-bpel/build.xml @@ -0,0 +1,206 @@ +<!-- + * 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-helloworld-bpel" default="package"> + <property file="${user.home}/tuscany/build.properties" /> + <property file="${user.home}/build.properties" /> + + <property name="client.class" value="helloworld.BPELClient" /> + <property name="test.jar" value="sample-helloworld-bpel.jar" /> + + <property name="tuscany.sca.manifest.location" value="../../lib/tuscany-sca-manifest.jar"/> + <property name="tuscany.sca.lib.location" value="../../lib"/> + <property name="tuscany.sca.modules.location" value="../../modules"/> + + <path id="project.classpath"> + <pathelement path="target/classes"/> + <pathelement path="target/wsdl2java-source"/> + <pathelement path="target/jpadb"/> + <pathelement location="${tuscany.sca.manifest.location}"/> + + + <!-- Direct dependencies --> + <pathelement location="${tuscany.sca.lib.location}/commons-lang-2.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/saxon-8.7.jar"/> + <pathelement location="${tuscany.sca.lib.location}/saxon-dom-8.7.jar"/> + <pathelement location="${tuscany.sca.lib.location}/saxon-xpath-8.7.jar"/> + <pathelement location="${tuscany.sca.lib.location}/serp-1.12.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/derby-10.1.3.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-connector-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-kernel-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-transaction-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-ejb_3.0_spec-1.0.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-api-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-compiler-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-dao-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-epr-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-obj-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-runtime-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-schemas-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-bpel-store-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-dao-jpa-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-jacob-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-jacob-ap-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-scheduler-simple-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ode-utils-1.1.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/openjpa-all-0.9.7-incubating.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/tuscany-sdo-impl-1.0-incubating.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/xmlbeans-2.3.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/tranql-connector-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xercesImpl-2.8.0.jar"/> + + + <!-- Project Transitive Dependencies --> + <pathelement location="${tuscany.sca.lib.location}/activeio-2.0-r118.jar"/> + <pathelement location="${tuscany.sca.lib.location}/axion-1.0-M3-dev.jar"/> + <pathelement location="${tuscany.sca.lib.location}/backport-util-concurrent-2.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/cglib-nodep-2.1_3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/commons-codec-1.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/commons-collections-3.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/commons-jexl-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/commons-logging-1.0.4.jar"/> + <pathelement location="${tuscany.sca.lib.location}/commons-primitives-1.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/jaxen-1.1-beta-9.jar"/> + <pathelement location="${tuscany.sca.lib.location}/log4j-1.2.12.jar"/> + <pathelement location="${tuscany.sca.lib.location}/javacc-3.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-common-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-core-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-deployment-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-interceptor-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-j2ee-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-management-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-naming-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-security-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-system-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-util-1.2-beta.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-commonj_1.1_spec-1.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-j2ee-connector_1.5_spec-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-j2ee-jacc_1.0_spec-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-j2ee-management_1.0_spec-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-jpa_3.0_spec-1.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-jta_1.0.1B_spec-1.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/neethi-2.0.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/openjpa-persistence-0.9.7-incubating.jar"/> + <pathelement location="${tuscany.sca.lib.location}/axiom-api-1.2.5.jar"/> + <pathelement location="${tuscany.sca.lib.location}/XmlSchema-1.3.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xbean-naming-2.7.jar"/> + <pathelement location="${tuscany.sca.lib.location}/wstx-asl-3.2.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/common-2.2.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ecore-2.2.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ecore-change-2.2.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ecore-xmi-2.2.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xsd-2.2.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/howl-1.0.1-1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/regexp-1.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/stax-api-1.0.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/wsdl4j-1.6.2.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xalan-2.7.0.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xml-apis-1.3.03.jar"/> + <pathelement location="${tuscany.sca.lib.location}/xml-resolver-1.1.jar"/> + + <!-- Runtime dependencies --> + <pathelement location="${tuscany.sca.lib.location}/axiom-impl-1.2.5.jar"/> + + <!-- Others --> + <pathelement location="${tuscany.sca.lib.location}/tuscany-sdo-api-r2.1-1.0-incubating.jar"/> + <pathelement location="${tuscany.sca.lib.location}/tuscany-sdo-lib-1.0-incubating.jar"/> + <pathelement location="${tuscany.sca.lib.location}/geronimo-spec-j2ee-connector-1.5-rc4.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/geronimo-spec-jta-1.0.1B-rc4.jar"/> + <pathelement location="${tuscany.sca.lib.location}/activation-1.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/mail-1.4.jar"/> + + <pathelement location="${tuscany.sca.lib.location}/xstream-1.1.3.jar"/> + <!-- + + <pathelement location="${tuscany.sca.lib.location}/xpp3-1.1.3.3.jar"/> + <pathelement location="${tuscany.sca.lib.location}/ognl-2.6.9.jar"/> + <pathelement location="${tuscany.sca.lib.location}/mx4j-3.0.1.jar"/> + <pathelement location="${tuscany.sca.lib.location}/derbytools-10.1.2.1.jar"/> + --> + + </path> + + <target name="init"> + <mkdir dir="target/classes"/> + <mkdir dir="target/wsdl2java-source"/> + </target> + + + <target name="generate-wsdl" depends="init"> + <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator" fork="true"> + <arg value="-targetDirectory"/> + <arg value="target/wsdl2java-source"/> + <arg value="-prefix"/> + <arg value="HelloWorld"/> + <arg value="-noContainment"/> + <arg value="-noUnsettable"/> + <arg value="src/main/resources/helloworld.wsdl"/> + + <classpath refid="project.classpath"/> + </java> + <java classname="org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator" fork="true"> + <arg value="-targetDirectory"/> + <arg value="target/wsdl2java-source"/> + <arg value="src/main/resources/helloworld.wsdl"/> + + <classpath refid="project.classpath"/> + </java> + </target> + + <target name="unzip-ode-db" depends="init"> + <unzip src="${tuscany.sca.lib.location}/ode-dao-jpa-ojpa-derby-1.1.zip" dest="target/jpadb"/> + </target> + + <target name="compile" depends="init,generate-wsdl,unzip-ode-db"> + <javac destdir="target/classes" + debug="on" + source="1.5" + target="1.5"> + <src location="src/main/java"/> + <src location="target/wsdl2java-source"/> + <classpath refid="project.classpath"/> + </javac> + <copy todir="target/classes"> + <fileset dir="src/main/resources"/> + <fileset dir="target/wsdl2java-source"/> + </copy> + <jar destfile="target/${test.jar}" basedir="target/classes"> + <manifest> + <attribute name="Main-Class" value="${client.class}" /> + </manifest> + </jar> + </target> + + <target name="run"> + <java classname="${client.class}" fork="true"> + <classpath path="target/${test.jar}"/> + <classpath refid="project.classpath"/> + </java> + </target> + + <target name="clean"> + <delete quiet="true" includeemptydirs="true"> + <fileset dir="target"/> + </delete> + </target> +</project> |