diff options
3 files changed, 194 insertions, 0 deletions
diff --git a/branches/sca-java-1.5.1/samples/store-webapp/build-dependency.xml b/branches/sca-java-1.5.1/samples/store-webapp/build-dependency.xml new file mode 100644 index 0000000000..fe2cc6f44e --- /dev/null +++ b/branches/sca-java-1.5.1/samples/store-webapp/build-dependency.xml @@ -0,0 +1,109 @@ +<!-- + * 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. +--> + + <fileset id="tuscany.jars" dir="../../modules"> + <include name="tuscany-assembly-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-assembly-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-assembly-xsd-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-atom-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-atom-abdera-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-atom-js-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-http-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-jsonrpc-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-jsonrpc-js-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-jsonrpc-runtime-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-sca-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-binding-sca-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-contribution-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-contribution-impl-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-contribution-java-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-contribution-namespace-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-contribution-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-core-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-core-databinding-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-core-spi-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-data-api-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-databinding-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-databinding-jaxb-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-databinding-json-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-definitions-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-definitions-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-endpoint-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-extensibility-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-host-embedded-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-host-http-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-host-webapp-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-java-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-java-runtime-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-java-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-node-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-widget-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-widget-runtime-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-implementation-widget-runtime-tuscany-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-interface-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-interface-java-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-interface-java-jaxws-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-interface-java-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-interface-wsdl-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-monitor-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-node-api-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-node-impl-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-policy-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-policy-xml-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-sca-api-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-sca-api-extension-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-web-javascript-1.5.1-SNAPSHOT.jar"/> + <include name="tuscany-xsd-1.5.1-SNAPSHOT.jar"/> + </fileset> + <fileset id="3rdparty.jars" dir="../../lib"> + <include name="XmlSchema-1.4.2.jar"/> + <include name="abdera-client-0.4.0-incubating.jar"/> + <include name="abdera-core-0.4.0-incubating.jar"/> + <include name="abdera-extensions-html-0.4.0-incubating.jar"/> + <include name="abdera-extensions-json-0.4.0-incubating.jar"/> + <include name="abdera-extensions-main-0.4.0-incubating.jar"/> + <include name="abdera-i18n-0.4.0-incubating.jar"/> + <include name="abdera-parser-0.4.0-incubating.jar"/> + <include name="abdera-server-0.4.0-incubating.jar"/> + <include name="activation-1.1.jar"/> + <include name="asm-all-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="commons-codec-1.3.jar"/> + <include name="commons-httpclient-3.1.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="htmlparser-1.0.5.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="jettison-1.0.1.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="servlet-api-2.4.jar"/> + <include name="stax-api-1.0-2.jar"/> + <include name="wsdl4j-1.6.2.jar"/> + <include name="wstx-asl-3.2.4.jar"/> + </fileset> + diff --git a/branches/sca-java-1.5.1/samples/store-webapp/build.xml b/branches/sca-java-1.5.1/samples/store-webapp/build.xml new file mode 100644 index 0000000000..72089e2bae --- /dev/null +++ b/branches/sca-java-1.5.1/samples/store-webapp/build.xml @@ -0,0 +1,68 @@ +<!-- + * 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. +--> +<!DOCTYPE project [ +<!ENTITY buildDependency SYSTEM "build-dependency.xml"> +]> + +<project name="sample-store-webapp" default="compile"> + + &buildDependency; + + <target name="compile"> + <mkdir dir="target/classes"/> + <javac destdir="target/classes" debug="on" source="1.5" target="1.5"> + <src path="src\main\java"/> + <classpath> + <fileset refid="tuscany.jars"/> + <fileset refid="3rdparty.jars"/> + </classpath> + </javac> + <copy todir="target/classes"> + <fileset dir="src\main\resources"/> + <fileset dir="src\main\resources"/> + </copy> + + <ant antfile="./build-dojo.xml" target="install-dojo-nomaven"> + <property name="localRepository" value="./target/repo"/> + </ant> + + <ant antfile="./build-dojo.xml" target="unpack-dojo-files"> + <property name="localRepository" value="./target/repo"/> + </ant> + + <war destfile="target/sample-store-webapp.war" webxml="src/main/webapp/WEB-INF/web.xml"> + <fileset dir="src/main/webapp"/> + <lib refid="tuscany.jars"/> + <lib refid="3rdparty.jars"/> + <classes dir="target/classes"/> + </war> + + <ant antfile="./build-dojo.xml" target="clean-dojo-files"> + <property name="localRepository" value="./target/repo"/> + </ant> + </target> + + <target name="package" depends="compile"/> + + <target name="clean"> + <delete includeemptydirs="true"> + <fileset dir="target"/> + </delete> + </target> +</project> diff --git a/branches/sca-java-1.5.1/samples/store-webapp/pom.xml b/branches/sca-java-1.5.1/samples/store-webapp/pom.xml index 7698165f1b..0f87a113af 100644 --- a/branches/sca-java-1.5.1/samples/store-webapp/pom.xml +++ b/branches/sca-java-1.5.1/samples/store-webapp/pom.xml @@ -103,6 +103,23 @@ <build> <finalName>${artifactId}</finalName> + <plugins> + <plugin> + <groupId>org.apache.tuscany.sca</groupId> + <artifactId>tuscany-maven-ant-generator</artifactId> + <version>1.5.1-SNAPSHOT</version> + <executions> + <execution> + <configuration> + <buildDependencyFileOnly>true</buildDependencyFileOnly> + </configuration> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> </project> |