gcasper 2003/09/11 10:08:38
Modified: src/targets test-build.xml
Log:
Better error handling
Revision Changes Path
1.18 +3 -6 cocoon-2.1/src/targets/test-build.xml
Index: test-build.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/targets/test-build.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- test-build.xml 11 Sep 2003 14:38:55 -0000 1.17
+++ test-build.xml 11 Sep 2003 17:08:38 -0000 1.18
@@ -26,12 +26,9 @@
<property name="port" value="8888"/>
<property name="base" value="/"/>
<property name="anteater.home" value="D:\downloads\anteater-0.9.16"/>
- <echo>+--------------------| W A R N I N G |----------------------+
</echo>
- <echo> The value of the anteater.home property is:
</echo>
- <echo> ${anteater.home}
</echo>
- <echo> Please make sure the anteater.home property points to
</echo>
- <echo> your local Anteater installation
</echo>
- <echo>+-----------------------------------------------------------+
</echo>
+ <available file="${anteater.home}" property="anteater.present"/>
+ <fail unless="anteater.present"
+ message="Please make sure Anteater is installed in
${anteater.home} or adjust the anteater.home property"/>
<java classname="org.apache.tools.ant.Main" fork="true">
<classpath>
<fileset dir="${anteater.home}">