lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r489254 - in /lucene/java/trunk: CHANGES.txt build.xml
Date Thu, 21 Dec 2006 03:14:03 GMT
Author: gsingers
Date: Wed Dec 20 19:14:02 2006
New Revision: 489254

URL: http://svn.apache.org/viewvc?view=rev&rev=489254
Log:
Lucene 757 - Added init-dist target and had package and package-*-src call it to ensure the
dist dir is created.

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/build.xml

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?view=diff&rev=489254&r1=489253&r2=489254
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Wed Dec 20 19:14:02 2006
@@ -382,6 +382,8 @@
 
   2. Added a sysproperty in common-build.xml per Lucene 752 to map java.io.tmpdir to ${build.dir}/test
just like the tempDir sysproperty.
 
+  3. LUCENE-757 Added new target named init-dist that does setup for distribution of both
binary and source distributions.  Called by package and package-*-src
+
 Release 2.0.0 2006-05-26
 
 API Changes

Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?view=diff&rev=489254&r1=489253&r2=489254
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Wed Dec 20 19:14:02 2006
@@ -140,8 +140,8 @@
   <!-- ================================================================== -->
   <!--                                                                    -->
   <!-- ================================================================== -->
-  <target name="package" depends="jar-core, javadocs, war-demo, build-contrib">
-    <mkdir dir="${dist.dir}"/>
+  <target name="package" depends="jar-core, javadocs, war-demo, build-contrib, init-dist">
+
   </target>
 
   <target name="nightly" depends="test, package-tgz">
@@ -208,13 +208,16 @@
   <!-- ================================================================== -->
   <!-- S O U R C E  D I S T R I B U T I O N                               -->
   <!-- ================================================================== -->
-
+    <target name="init-dist" >
+        <!-- Package is not called first if packaging src standalone, so the dist.dir
may not exist -->
+        <mkdir dir="${dist.dir}"/>
+    </target>
   <!-- ================================================================== -->
   <!-- Packages the sources with zip                                      -->
   <!-- ================================================================== -->
   <!--                                                                    -->
   <!-- ================================================================== -->
-  <target name="package-zip-src" depends="init"
+  <target name="package-zip-src" depends="init, init-dist"
     description="--> Generates the Lucene sources as .zip">
     <zip destfile="${dist.dir}/lucene-${version}-src.zip">
       <zipfileset prefix="lucene-${version}" dir=".">
@@ -228,7 +231,7 @@
   <!-- ================================================================== -->
   <!--                                                                    -->
   <!-- ================================================================== -->
-  <target name="package-tgz-src" depends="init"
+  <target name="package-tgz-src" depends="init, init-dist"
     description="--> Generates the Lucene distribution as .tar.gz">
 
     <delete file="${build.dir}/lucene-${version}-src.tar"/>



Mime
View raw message