You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2005/04/05 14:59:48 UTC

svn commit: r160167 - lucene/java/trunk/build.xml

Author: ehatcher
Date: Tue Apr  5 05:59:48 2005
New Revision: 160167

URL: http://svn.apache.org/viewcvs?view=rev&rev=160167
Log:
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

Modified:
    lucene/java/trunk/build.xml

Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/build.xml?view=diff&r1=160166&r2=160167
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Tue Apr  5 05:59:48 2005
@@ -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>
     <available
       classname="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">
     <taskdef
       name="anakia"
-      classname="org.apache.velocity.anakia.AnakiaTask"
-      >
+      classname="org.apache.velocity.anakia.AnakiaTask">
       <classpath refid="anakia.classpath"/>
     </taskdef>