Apache Lucene open-source search software
adjusted how the asf.site.home property is used. there is now no default for it, as that will likely vary for all of us
Erik Hatcherbb8a8bdc487f
diff --git a/build.xml b/build.xmlindex f668b4dc779..fee6a2f7fba 100644--- a/build.xml+++ b/build.xml@@ -33,8 +33,6 @@<property name="javacc.home" location="."/>- <property name="asf.site.home" location="../../../site"/>-<property name="junit.output.dir" location="${build.dir}/test"/><property name="junit.reports" location="${build.dir}/test/reports"/>@@ -83,12 +81,6 @@<pathelement path="${java.class.path}"/></path>- <path id="anakia.classpath">- <fileset dir="${asf.site.home}/lib">- <include name="*.jar"/>- </fileset>- </path>-<!-- ================================================================== --><!-- Prepares the build directory --><!-- ================================================================== -->@@ -370,25 +362,35 @@<!-- --><!-- ================================================================== --><target name="docs-prepare">+ <fail unless="asf.site.home">+ Set the property asf.site.home. This can be done using one of the following methods:++ * run Ant with the switch -Dasf.site.home=/path/to/asf/site/module+ * Add asf.site.home to a build.properties file in the top-level Lucene directory++ </fail><availableclassname="org.apache.velocity.anakia.AnakiaTask"- property="AnakiaTask.present"- classpathref="anakia.classpath"- />+ property="AnakiaTask.present">+ <classpath id="anakia.classpath">+ <fileset dir="${asf.site.home}/lib">+ <include name="*.jar"/>+ </fileset>+ </classpath>+ </available></target><target name="prepare-error" depends="docs-prepare" unless="AnakiaTask.present"><echo>AnakiaTask is not present! Please check to make sure that- you have asf.site.home set correctly.+ you have asf.site.home (currently ${asf.site.home}) set correctly.</echo></target><target name="docs" depends="prepare-error" if="AnakiaTask.present"><taskdefname="anakia"- classname="org.apache.velocity.anakia.AnakiaTask"- >+ classname="org.apache.velocity.anakia.AnakiaTask"><classpath refid="anakia.classpath"/></taskdef>