summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-19 22:15:46 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-19 22:15:46 +0000
commitf9e201e6aaf9d8c858059ddfebd4cada5d5ae1b5 (patch)
tree124c88c8b33c134938516e7cd61728e5b26a9a79 /sca-java-1.x/trunk
parent4bdf141a7b1da51e6ed6caa7ea7964cf92d8ea8f (diff)
Merge revision r946380 from 1.0 release branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@946461 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml67
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml4
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml5
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml5
4 files changed, 39 insertions, 42 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
index d9db29dcc9..6267ed4900 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
@@ -44,10 +44,10 @@
This file defines the following targets that can be used on the
ant command that invokes the build.xml file:
"compile" Compiles any Java source files that don't have an up-to-date
- class file, and copies any files in or under the resource directory.
- If the build.xml file contains a <path> element with the id
- "compile-path", the contents of this path are added to the compiler's
- classpath. Also invokes the following targets:
+ class file, and copies any files in or under the src/main/resources
+ directory. If the build.xml file contains a <path> element with the
+ id "compile-path", the contents of this path are added to the
+ compiler's classpath. Also invokes the following targets:
. "wsdljava" (defined in the build.xml file) if there are any
.wsdl files in or under the resource directory
. "idljava" (defined in the build.xml file) if there are any
@@ -55,26 +55,26 @@
. "test" if there are any files in or under the src/test/java
directory
. "package" if all previous steps completed successfully
+ If the build.xml file defines the "run-update-resources" property,
+ the "update-resources" target in the build.xml file is invoked after
+ copying resources.
"test" Compiles any Java unit test files that don't have an
up-to-date class file, copies any test resources in or under the
src/test/resources directory, and runs the unit tests. If the
build.xml file contains a <path> element with the id "test-path",
- the contents of this path are used for compiling and running the
+ the contents of this path are used for compiling and running
unit tests. In addition, the "compile-path" setting (if specified)
is used for running unit tests. If the build.xml file defines the
- "run-test-setup" property, the "test-setup" target in the build.xml
- file is invoked after copying the test resources.
+ "run-update-test-resources" property, the "update-test-resources"
+ target in the build.xml file is invoked after copying test resources.
"package" Creates a jar file containing the compiled Java class
- files (excluding unit test code) and any files in or under the
- resource directory, unless the jar file is already up to date.
- If the build.xml file defines the "run-package-setup" property,
- the "package-setup" target in the build.xml file is invoked before
- creating the jar file. The contents of the jar file are taken from
- the target/classes directory unless the target/jar-classes directory
- exists, in which case this directory is used in preference to
- target/classes. If the build.xml file defines a property named
- "package-path", a Class-Path manifest entry is created using the
- value of this property.
+ files (excluding unit test code) and any files in or under the
+ resource directory, unless the jar file is already up to date.
+ The contents of the jar file are taken from the target/classes
+ directory unless the target/jar-classes directory exists, in which
+ case this directory is used in preference to target/classes. If the
+ build.xml file defines a property named "package-path", a Class-Path
+ manifest entry is created and set to the value of this property.
"clean" Deletes all the files produced by the build.
This file also defines the following targets for invocation by <antcall>
@@ -348,6 +348,11 @@
</copy>
</target>
+ <!-- update copied resources if required -->
+ <target name="#update-resources" if="run-update-resources">
+ <antcall target="update-resources"/>
+ </target>
+
<!-- check whether there are any Java files in or under the test directory -->
<target name="#find-testjava">
<fileset id="#alltestjava" dir="src/test/java">
@@ -361,13 +366,8 @@
</condition>
</target>
- <!-- call the test target if required -->
- <target name="#call-test" depends="#find-testjava" if="#testjava">
- <antcall target="test"/>
- </target>
-
<!-- check whether there are any test resources to copy -->
- <target name="#find-testresources">
+ <target name="#find-test-resources">
<fileset id="#alltestresources" dir="src/test/resources"/>
<condition property="#testresources">
<and>
@@ -378,15 +378,15 @@
</target>
<!-- copy the test resources -->
- <target name="#copy-testresources" depends="#find-testresources" if="#testresources">
+ <target name="#copy-test-resources" depends="#find-test-resources" if="#testresources">
<copy todir="target/test-classes">
<fileset dir="src/test/resources"/>
</copy>
</target>
- <!-- perform additional test setup if required -->
- <target name="#run-test-setup" if="run-test-setup">
- <antcall target="test-setup"/>
+ <!-- update copied test resources if required -->
+ <target name="#update-test-resources" if="run-update-test-resources">
+ <antcall target="update-test-resources"/>
</target>
<!-- check whether a dependency path for the unit tests was specified -->
@@ -581,11 +581,6 @@
</fail>
</target>
- <!-- perform additional packaging setup if required -->
- <target name="#run-package-setup" if="run-package-setup">
- <antcall target="package-setup"/>
- </target>
-
<!-- check whether the target/jar-classes directory exists -->
<target name="#check-jar-classes">
<condition property="#jar-classes" value="target/jar-classes">
@@ -744,7 +739,8 @@
<antcall target="#call-idljava"/>
<antcall target="#src-compile"/>
<antcall target="#copy-resources"/>
- <antcall target="#call-test"/>
+ <antcall target="#update-resources"/>
+ <antcall target="test"/>
<antcall target="package"/>
</target>
@@ -753,15 +749,14 @@
<echo message="Testing project ${ant.project.name}"/>
<mkdir dir="target/test-classes"/>
<antcall target="#test-compile"/>
- <antcall target="#copy-testresources"/>
- <antcall target="#run-test-setup"/>
+ <antcall target="#copy-test-resources"/>
+ <antcall target="#update-test-resources"/>
<antcall target="#run-junit"/>
</target>
<!-- for external use on the ant command line -->
<target name="package">
<echo message="Packaging project ${ant.project.name}"/>
- <antcall target="#run-package-setup"/>
<antcall target="#build-package"/>
</target>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml
index e2d2bb7326..a725645c77 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml
@@ -38,8 +38,8 @@
</antcall>
</target>
- <property name="run-test-setup" value="true"/>
- <target name="test-setup">
+ <property name="run-update-test-resources" value="true"/>
+ <target name="update-test-resources">
<unzip dest="target/test-classes">
<fileset dir="${env.TUSCANY_HOME}/lib">
<include name="ode-dao-jpa-ojpa-derby-*.zip"/>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml
index 931bbc3ead..adb8fafeda 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml
@@ -20,8 +20,9 @@
<project name="scatours-domainconfig-fullapp" default="compile">
<import file="../../antdefs.xml"/>
- <property name="run-package-setup" value="true"/>
- <target name="package-setup">
+ <property name="run-update-resources" value="true"/>
+ <target name="update-resources">
+ <delete file="target/classes/workspace-binaries.xml"/>
<mkdir dir="target/jar-classes/fullapp"/>
<copy todir="target/jar-classes/fullapp">
<fileset dir="src/main/resources">
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml
index 19058058c3..0aff8e6fb5 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml
@@ -20,8 +20,9 @@
<project name="scatours-domainconfig-introducing" default="compile">
<import file="../../antdefs.xml"/>
- <property name="run-package-setup" value="true"/>
- <target name="package-setup">
+ <property name="run-update-resources" value="true"/>
+ <target name="update-resources">
+ <delete file="target/classes/workspace-binaries.xml"/>
<mkdir dir="target/jar-classes/introducing"/>
<copy todir="target/jar-classes/introducing">
<fileset dir="src/main/resources">