diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-19 21:35:36 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-19 21:35:36 +0000 |
commit | 03b1ff118ece1c73cd9e33bb7a65c212b0898dfc (patch) | |
tree | a480bd72619e27f1faf892fb9c6828ea184513c1 /sca-java-1.x/trunk/tutorials/travelsample | |
parent | e91f85e5be5f84b93a9cb7212645c03221faddee (diff) |
Merge revision r944884 from 1.0 release branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@946410 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample')
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml | 29 | ||||
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml | 2 |
2 files changed, 21 insertions, 10 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml index ceb36979ac..db5c9b5d69 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml @@ -94,8 +94,8 @@ This file also defines the following targets for use with the "depends"
attribute on targets in the build.xml file:
"locate-openejb" Locates the OpenEJB dependencies needed by some
- modules and sets the "openejb-dir" property to a directory
- containing these dependencies.
+ modules and sets the "openejb-files" files resource to bring in
+ these dependencies.
"locate-jaxws" Locates the JAX-WS dependencies needed by some modules
when running on JDK 5, and creates a path with id "jaxws-path"
to bring in these dependencies.
@@ -619,30 +619,41 @@ <!-- If running from a downloaded distribution, the OpenEJB jars are in lib/openejb -->
<target name="#lib-openejb">
- <condition property="openejb-dir" value="../../../lib/openejb">
+ <condition property="#openejb-reldir" value="../../../lib/openejb">
<available file="../../../lib/openejb" type="dir"/>
</condition>
</target>
<!-- If running from a maven build, the OpenEJB jars are in binaries/target/openejb -->
- <target name="#binaries-openejb" unless="openejb-dir">
- <condition property="openejb-dir" value="../../binaries/target/openejb">
+ <target name="#binaries-openejb" unless="#openejb-reldir">
+ <condition property="#openejb-reldir" value="../../binaries/target/openejb">
<available file="../../binaries/target/openejb" type="dir"/>
</condition>
</target>
+ <!-- Add the Tuscany runtime to the OpenEJB directory -->
+ <target name="#tuscany-openejb" if="#openejb-reldir">
+ <property name="#openejb-tuscany" value=""/>
+ <dirname property="#ejbdir" file="${#openejb-reldir}"/>
+ <property name="#openejb-dir" value="${#ejbdir}/openejb"/>
+ </target>
+
<!-- Could be running from an ant build of a svn checkout, so try the OPENEJB_HOME environment variable -->
- <target name="#env-openejb" unless="openejb-dir">
- <condition property="openejb-dir" value="${env.OPENEJB_HOME}/lib">
+ <target name="#env-openejb" unless="#openejb-dir">
+ <condition property="#openejb-dir" value="${env.OPENEJB_HOME}/lib">
<available file="${env.OPENEJB_HOME}/lib" type="dir"/>
</condition>
</target>
<!-- For use as a dependency of "run" targets that need OpenEJB -->
- <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #env-openejb">
- <fail unless="openejb-dir">
+ <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #tuscany-openejb, #env-openejb">
+ <fail unless="#openejb-dir">
Error: Couldn't find OpenEJB dependencies.
</fail>
+ <files id="openejb-files">
+ <include if="#openejb-dir" name="${#openejb-dir}/*"/>
+ <include if="#openejb-tuscany" name="${env.TUSCANY_HOME}/lib/*"/>
+ </files>
</target>
<!-- check to see if we are running on JDK 6 -->
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml index ac75efa6ca..94e17736af 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml +++ b/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml @@ -28,7 +28,7 @@ fork="true" failonerror="true">
<classpath>
<pathelement location="target/${ant.project.name}.jar"/>
- <fileset dir="${openejb-dir}"/>
+ <files refid="openejb-files"/>
</classpath>
</java>
</target>
|