Apache Lucene open-source search software
Lucene 757 - Added init-dist target and had package and package-*-src call it to ensure the dist dir is created.
Grant Ingersolld9ebc50096c6
diff --git a/CHANGES.txt b/CHANGES.txtindex 13c7aa41ddd..92a01318f30 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -382,6 +382,8 @@ Build2. 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-26API Changesdiff --git a/build.xml b/build.xmlindex 76b37fc31e1..94fd2b478bd 100644--- a/build.xml+++ b/build.xml@@ -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"/>