mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r686211 - in /lucene/mahout/trunk: build.xml examples/build.xml
Date Fri, 15 Aug 2008 13:28:34 GMT
Author: gsingers
Date: Fri Aug 15 06:28:34 2008
New Revision: 686211

URL: http://svn.apache.org/viewvc?rev=686211&view=rev
Log:
fix top level build, add top level clean, make examples fail to compile if no core built

Modified:
    lucene/mahout/trunk/build.xml
    lucene/mahout/trunk/examples/build.xml

Modified: lucene/mahout/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/build.xml?rev=686211&r1=686210&r2=686211&view=diff
==============================================================================
--- lucene/mahout/trunk/build.xml (original)
+++ lucene/mahout/trunk/build.xml Fri Aug 15 06:28:34 2008
@@ -7,6 +7,12 @@
     <ant dir="examples" antfile="build.xml" target="dist-jar"/>
   </target>
 
+  <target name="clean">
+    <ant dir="core" antfile="build.xml" target="clean"/>
+    <ant dir="examples" antfile="build.xml" target="clean"/>
+    <delete dir="build"/>
+    
+  </target>
 </project>
 
   
\ No newline at end of file

Modified: lucene/mahout/trunk/examples/build.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/examples/build.xml?rev=686211&r1=686210&r2=686211&view=diff
==============================================================================
--- lucene/mahout/trunk/examples/build.xml (original)
+++ lucene/mahout/trunk/examples/build.xml Fri Aug 15 06:28:34 2008
@@ -102,7 +102,7 @@
       <include name="*.jar" />
       <exclude name="junit*.jar"/>
     </fileset>
-    <filelist files="../core/dist/apache-mahout-core-${version}.jar"/>
+    <filelist files="${basedir}/../core/dist/apache-mahout-core-${version}.jar"/>
   </path>
   <path id="test.classpath">
     <path refid="junit-path"/>
@@ -211,16 +211,22 @@
   <!-- ========================================================================= -->
   <!-- ===================== COMPILATION-RELATED TASKS ========================= -->
   <!-- ========================================================================= -->
-
+  <available property="core-built" file="${basedir}/../core/dist/apache-mahout-core-${version}.jar"/>
   <!-- Compile the project. -->
-  <target name="compile"
-          description="Compile the source code."
-          >
+  <target name="compile-examples" if="core-built">
     <mahout-javac destdir="${dest}/classes"
                 classpathref="compile.classpath">
       <src path="${src}/main/java" />
     </mahout-javac>
   </target>
+  <target name="no-compile" unless="core-built">
+    <fail>You must build the core jar first</fail>
+  </target>
+  <target name="compile"
+          description="Compile the source code." depends="compile-examples, no-compile"
+          >
+
+  </target>
 
   <target name="javadoc" depends="compile"
           description="Generates javadoc documentation.">



Mime
View raw message