Update of /cvsroot/mockobjects/mockobjects-java
In directory usw-pr-cvs1:/tmp/cvs-serv25498
Modified Files:
build.xml
Log Message:
Updated the build.xml to skip compiling the jms mocks
if the javax.jms.Message class cannot be found in the
classpath, much like how the servlet stuff is skipped.
Changed the order of build.properties processing to
read the user's build.properties before the project's
build.properties. This way you can define locations
and use them in the specific props for projects.
Index: build.xml
===================================================================
RCS file: /cvsroot/mockobjects/mockobjects-java/build.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- build.xml 2001/09/09 00:49:57 1.14
+++ build.xml 2001/11/05 00:11:51 1.15
@@ -33,8 +33,8 @@
<!-- Give user a chance to override without editing this file
(and without typing -D each time it compiles it) -->
- <property file="build.properties" />
<property file="${user.home}/build.properties" />
+ <property file="build.properties" />
<!-- Generic project properties -->
<property name="project.fullname" value="Mock Objects"/>
@@ -164,6 +164,10 @@
classname="javax.servlet.Servlet"
classpathref="lib.classpath"/>
+ <available property="jms.present"
+ classname="javax.jms.Message"
+ classpathref="lib.classpath"/>
+
</target>
<!--
@@ -251,6 +255,7 @@
<!-- Exclude all java files for which no library is present -->
<exclude name="${package.prefix}/servlet/**" unless="servlet.present"/>
+ <exclude name="${package.prefix}/jms/**" unless="jms.present"/>
<classpath>
<path refid="lib.classpath"/>
|