summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 08:55:14 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 08:55:14 +0000
commitda570f0ca0224f05863d0c51e2da2ed124311abc (patch)
tree8ff004fa4decda59d4f4830209055219de9c933d /sca-java-1.x/trunk/tutorials
parente4b71bc875e6b75afda1e07b4a154fe79777eb5d (diff)
Merge r998069 Add build.xml file with generated dependencies
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1026977 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials')
-rw-r--r--sca-java-1.x/trunk/tutorials/store/catalog-webapp/build.xml51
-rw-r--r--sca-java-1.x/trunk/tutorials/store/catalog-webapp/pom.xml5
2 files changed, 54 insertions, 2 deletions
diff --git a/sca-java-1.x/trunk/tutorials/store/catalog-webapp/build.xml b/sca-java-1.x/trunk/tutorials/store/catalog-webapp/build.xml
new file mode 100644
index 0000000000..3247521fe3
--- /dev/null
+++ b/sca-java-1.x/trunk/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/trunk/tutorials/store/catalog-webapp/pom.xml b/sca-java-1.x/trunk/tutorials/store/catalog-webapp/pom.xml
index e530146a10..1f1323b0eb 100644
--- a/sca-java-1.x/trunk/tutorials/store/catalog-webapp/pom.xml
+++ b/sca-java-1.x/trunk/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>