summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-17 11:00:48 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-17 11:00:48 +0000
commit6fe2c5885932b5987823b25e1002864bc58eaa08 (patch)
treec0eaa245e35e390f1fc930098efd41ac357f8ec5 /sca-java-1.x/branches
parent4456105a464543d806704bad2f15bec7b7ddf7d4 (diff)
Add build.xml file with generated dependencies
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@998069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/build.xml51
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/pom.xml5
2 files changed, 54 insertions, 2 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/build.xml b/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/build.xml
new file mode 100644
index 0000000000..3247521fe3
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/build.xml
@@ -0,0 +1,51 @@
+<!--
+ * 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="tutorial-catalog-webapp" default="compile">
+ &buildDependency;
+ <target name="compile">
+ <mkdir dir="target/classes"/>
+ <copy todir="target/classes">
+ <fileset dir="." excludes="pom.xml, build.xml, build-dependency.xml, webapp/**, target/**"/>
+ </copy>
+ <war destfile="target/tutorial-catalog-webapp.war" webxml="webapp/WEB-INF/web.xml">
+ <fileset dir="webapp"/>
+ <lib refid="tutorial-assets-jar"/>
+ <lib refid="tuscany.jars"/>
+ <lib refid="3rdparty.jars"/>
+ <classes dir="target/classes"/>
+ </war>
+ </target>
+
+ <target name="package" depends="compile"/>
+
+ <target name="clean">
+ <delete includeemptydirs="true">
+ <fileset dir="." includes="target/**"/>
+ </delete>
+ </target>
+
+ <fileset id="tutorial-assets-jar" dir="../assets/target">
+ <include name="tutorial-assets.jar"/>
+ </fileset>
+
+</project>
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/pom.xml b/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/pom.xml
index e9097f44fe..ea14eb4408 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/pom.xml
+++ b/sca-java-1.x/branches/sca-java-1.6.1/tutorials/store/catalog-webapp/pom.xml
@@ -77,7 +77,7 @@
<exclude>**/.*/**</exclude>
<exclude>pom.xml</exclude>
<exclude>build.xml</exclude>
- <exclude>target/**</exclude>
+ <exclude>build-dependency.xml</exclude>
<exclude>webapp/**</exclude>
<exclude>target/**</exclude>
</excludes>
@@ -100,7 +100,8 @@
<execution>
<configuration>
<pathToRootDir>../../..</pathToRootDir>
- </configuration>
+ <buildDependencyFileOnly>true</buildDependencyFileOnly>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>