vmassol 2003/10/20 14:18:51
Modified: samples/ejb build.xml
Log:
Changed strategy: made clover.jar mandatory if clover is enabled. It was too complex
to support making it optional for the sample servlet build...
Revision Changes Path
1.2 +13 -2 jakarta-cactus/samples/ejb/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/samples/ejb/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.xml 13 Sep 2003 12:11:43 -0000 1.1
+++ build.xml 20 Oct 2003 21:18:51 -0000 1.2
@@ -171,6 +171,7 @@
<echo/>
<echo>Options:</echo>
<echo> clover.enable = ${clover.enable}</echo>
+ <echo> clover.jar = [${clover.jar}]</echo>
<echo> cactus.port = ${cactus.port}</echo>
<condition property="properties.ok">
@@ -183,10 +184,20 @@
<available file="${j2ee.jar}"/>
<available file="${junit.jar}"/>
<available file="${log4j.jar}"/>
-
<!-- Verify that j2ee.jar contains ejb related classes -->
<available classname="javax.ejb.EJBObject"
classpath="${j2ee.jar}"/>
+ <!-- Check that clover.jar points to a valid file if clover is
+ enabled -->
+ <or>
+ <and>
+ <isset property="clover.enable"/>
+ <available file="${clover.jar}"/>
+ </and>
+ <not>
+ <isset property="clover.enable"/>
+ </not>
+ </or>
</and>
</condition>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]