You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2011/11/28 10:04:53 UTC

svn commit: r1207024 - /lucene/dev/branches/branch_3x/lucene/common-build.xml

Author: shaie
Date: Mon Nov 28 09:04:52 2011
New Revision: 1207024

URL: http://svn.apache.org/viewvc?rev=1207024&view=rev
Log:
LUCENE-3603: jar-src fails if build.dir does not exist

Modified:
    lucene/dev/branches/branch_3x/lucene/common-build.xml

Modified: lucene/dev/branches/branch_3x/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/common-build.xml?rev=1207024&r1=1207023&r2=1207024&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/common-build.xml (original)
+++ lucene/dev/branches/branch_3x/lucene/common-build.xml Mon Nov 28 09:04:52 2011
@@ -748,10 +748,13 @@
     <!-- convenience target to package core JAR -->
   </target>
 
-  <target name="jar-src" depends="init">
-    <jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar">
-      <fileset dir="${src.dir}/../resources" erroronmissingdir="no"/>
-    </jarify>
+  <target name="jar-src">
+    <sequential>
+      <mkdir dir="${build.dir}" />
+      <jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar">
+        <fileset dir="${src.dir}/../resources" erroronmissingdir="no"/>
+      </jarify>
+    </sequential>
   </target>
 
   <target name="default" depends="jar-core"/>