You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/05/19 23:42:09 UTC
svn commit: r946417 - in /tuscany/sca-java-1.x/trunk/tutorials/travelsample:
antdefs.xml launchers/notification-ejb/build.xml
services/smsgateway-ejb/build.xml
Author: nash
Date: Wed May 19 21:42:09 2010
New Revision: 946417
URL: http://svn.apache.org/viewvc?rev=946417&view=rev
Log:
Merge revision r944937 from 1.0 release branch
Modified:
tuscany/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
tuscany/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml
tuscany/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml
Modified: tuscany/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml?rev=946417&r1=946416&r2=946417&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml (original)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml Wed May 19 21:42:09 2010
@@ -653,41 +653,46 @@
<!-- If running from a downloaded distribution, the OpenEJB jars are in lib/openejb -->
<target name="#lib-openejb">
- <condition property="#openejb-reldir" value="../../../lib/openejb">
+ <condition property="#openejb-dir" 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-reldir">
+ <target name="#binaries-openejb" unless="#openejb-dir">
<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"/>
+ <!-- Set the path as the OpenEJB directory and the Tuscany runtime -->
+ <target name="#tuscany-openejb" if="#openejb-dir">
+ <path id="openejb-path">
+ <fileset dir="${#openejb-dir}"/>
+ <fileset dir="${env.TUSCANY_HOME}/lib"/>
+ </path>
</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">
+ <condition property="#openejb-home" value="${env.OPENEJB_HOME}/lib">
<available file="${env.OPENEJB_HOME}/lib" type="dir"/>
</condition>
</target>
+ <!-- Set the path as the OPENEJB_HOME directory -->
+ <target name="#home-openejb" if="#openejb-home">
+ <path id="openejb-path">
+ <fileset dir="${#openejb-home}"/>
+ </path>
+ <property name="#openejb-dir" value="${#openejb-home}"/>
+ </target>
+
<!-- For use as a dependency of "run" targets that need OpenEJB -->
- <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #tuscany-openejb, #env-openejb">
+ <target name="locate-openejb" depends="#lib-openejb, #binaries-openejb, #tuscany-openejb, #env-openejb, #home-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 -->
Modified: tuscany/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml?rev=946417&r1=946416&r2=946417&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml (original)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml Wed May 19 21:42:09 2010
@@ -38,7 +38,7 @@
<pathelement location="target/${ant.project.name}.jar"/>
<path refid="compile-path"/>
<pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
- <fileset dir="${openejb-dir}"/>
+ <path refid="openejb-path"/>
</classpath>
</java>
</target>
Modified: tuscany/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml?rev=946417&r1=946416&r2=946417&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml (original)
+++ tuscany/sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml Wed May 19 21:42:09 2010
@@ -28,7 +28,7 @@
fork="true" failonerror="true">
<classpath>
<pathelement location="target/${ant.project.name}.jar"/>
- <files refid="openejb-files"/>
+ <path refid="openejb-path"/>
</classpath>
</java>
</target>