orlikowski 2003/06/25 02:44:41
Modified: . build.xml
Log:
Minor fixup to the build.xml to ensure that the source distribution
builds, without requiring the site building jars.
Revision Changes Path
1.6 +19 -12 jakarta-bsf/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-bsf/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 25 Jun 2003 09:14:12 -0000 1.5
+++ build.xml 25 Jun 2003 09:44:40 -0000 1.6
@@ -113,12 +113,6 @@
<target name="prepare" depends="init">
<mkdir dir="${build.dir}"/>
- <path id="anakia.classpath">
- <fileset dir="${basedir}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
<!-- ================================================================= -->
<!-- Determines what optional components are available -->
<!-- ================================================================= -->
@@ -146,11 +140,6 @@
<available property="xalan.present"
classname="org.apache.xalan.xslt.EnvironmentCheck"/>
- <available property="AnakiaTask.present"
- classname="org.apache.velocity.anakia.AnakiaTask">
- <classpath refid="anakia.classpath"/>
- </available>
-
<uptodate property="javac.notRequired"
targetfile="${build.lib}/${project.name}.jar">
<srcfiles dir="${src.dir}">
@@ -167,6 +156,24 @@
</target>
<!-- =================================================================== -->
+ <!-- Prepares the site build process -->
+ <!-- =================================================================== -->
+ <target name="prepare-site" depends="init">
+ <path id="anakia.classpath">
+ <fileset dir="${basedir}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <available property="AnakiaTask.present"
+ classname="org.apache.velocity.anakia.AnakiaTask">
+ <classpath refid="anakia.classpath"/>
+ </available>
+
+ <antcall target="checkAnakiaTask"/>
+ </target>
+
+ <!-- =================================================================== -->
<!-- Warn the user about items not present, for whatever purpose. -->
<!-- =================================================================== -->
<target name="checkJacl" unless="jacl.present">
@@ -320,7 +327,7 @@
<!-- =================================================================== -->
<target name="build-site" if="AnakiaTask.present"
description="Generates the website."
- depends="prepare, checkAnakiaTask">
+ depends="prepare-site">
<taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="anakia.classpath"/>
</taskdef>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]