You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jo...@locus.apache.org on 2000/11/27 00:06:20 UTC
cvs commit: jakarta-velocity/examples/anakia/build build.xml
jon 00/11/26 15:06:20
Modified: examples/anakia/build build.xml
Log:
added conditional task stuff
Revision Changes Path
1.3 +10 -3 jakarta-velocity/examples/anakia/build/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/examples/anakia/build/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 2000/11/25 20:41:02 1.2
+++ build.xml 2000/11/26 23:06:19 1.3
@@ -5,12 +5,19 @@
<property name="docs.src" value="../xdocs"/>
<property name="docs.dest" value="../docs"/>
- <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
-
<target name="prepare">
+ <available classname="org.apache.velocity.anakia.AnakiaTask" property="AnakiaTask.present"/>
+ </target>
+
+ <target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
+ <echo>
+ AnakiaTask is not present! Please check to make sure that
+ velocity.jar is in your classpath.
+ </echo>
</target>
- <target name="docs" depends="prepare">
+ <target name="docs" depends="prepare-error" if="AnakiaTask.present">
+ <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
<anakia basedir="${docs.src}" destdir="${docs.dest}/"
extension=".html" style="./site.vsl"
projectFile="./stylesheets/project.xml"