Index: solr/CHANGES.txt
===================================================================
--- solr/CHANGES.txt	(revision 1163619)
+++ solr/CHANGES.txt	(working copy)
@@ -301,7 +301,7 @@
 * SOLR-2654: The same Directory instance is now always used across a SolrCore so that
   it's easier to add other DirectoryFactory's without static caching hacks.
   (Mark Miller)
-  
+
 Documentation
 ----------------------
 
@@ -481,6 +481,10 @@
     modules' build.xml files.
   (Steve Rowe, Robert Muir)
 
+* LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr
+  to package sources from the local working copy.
+  (Seung-Yeoul Yang via Steve Rowe)
+
 Documentation
 ----------------------
 
Index: solr/build.xml
===================================================================
--- solr/build.xml	(revision 1163619)
+++ solr/build.xml	(working copy)
@@ -304,7 +304,35 @@
     </tar>
     <make-checksums file="${source.package.file}"/>
   </target>
-  
+ 
+  <target name="package-local-src-tgz"
+          description="Packages the Solr and Lucene sources from the local working copy">
+    <mkdir dir="${common-solr.dir}/build"/>
+    <property name="source.package.file"
+              value="${common-solr.dir}/build/${fullnamever}-src.tgz"/>
+    <delete file="${source.package.file}" failonerror="false" />
+
+    <tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
+      <tarfileset dir="../modules" prefix="${fullnamever}/modules" excludes="**/build/" />
+      <tarfileset dir=".." prefix="${fullnamever}" includes="*.txt *.xml dev-tools/" />
+      <tarfileset dir="." prefix="${fullnamever}" includes="LICENSE.txt NOTICE.txt"/>
+      <tarfileset dir="." prefix="${fullnamever}/solr"
+                  excludes="build ${package.dir}/** ${dist}/**
+                            example/webapps/*.war example/exampledocs/post.jar
+                            lib/README.committers.txt **/data/ **/logs/*
+                            **/*.sh **/bin/ src/scripts/ site-src/build/
+                            .idea/ **/*.iml **/pom.xml" />
+      <tarfileset dir="." prefix="${fullnamever}/solr"
+                  includes="core/src/test-files/solr/lib/classes/empty-file-main-lib.txt" />
+      <tarfileset dir="." filemode="755" prefix="${fullnamever}/solr"
+                  includes="**/*.sh **/bin/ core/src/scripts/"
+                  excludes="build/**"/>
+      <tarfileset dir="../lucene" prefix="${fullnamever}/lucene">
+        <patternset refid="lucene.local.src.package.patterns"/>
+      </tarfileset>
+    </tar>
+  </target>
+
   <target name="create-package"
           description="Packages the Solr Binary Distribution"
           depends="init-dist, dist, example, javadocs">
Index: lucene/common-build.xml
===================================================================
--- lucene/common-build.xml	(revision 1163619)
+++ lucene/common-build.xml	(working copy)
@@ -209,6 +209,11 @@
     <propertyref regex=".*\.compiled$$"/>
   </propertyset>
 
+  <patternset id="lucene.local.src.package.patterns"
+              includes="src/,index.html,*build*.xml,docs/,*.txt,contrib/,lib/,backwards/"
+              excludes="**/pom.xml,**/*.iml,src/site/build/"
+  />
+
   <target name="clean"
     description="Removes contents of build and dist directories">
     <delete dir="${build.dir}"/>
Index: lucene/CHANGES.txt
===================================================================
--- lucene/CHANGES.txt	(revision 1163619)
+++ lucene/CHANGES.txt	(working copy)
@@ -623,6 +623,13 @@
 * LUCENE-3327: Fix AIOOBE when TestFSTs is run with
   -Dtests.verbose=true (James Dyer via Mike McCandless)
 
+Build
+
+* LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr
+  to package sources from the local working copy.
+  (Seung-Yeoul Yang via Steve Rowe)
+
+
 ======================= Lucene 3.3.0 =======================
 
 Changes in backwards compatibility policy
Index: lucene/build.xml
===================================================================
--- lucene/build.xml	(revision 1163619)
+++ lucene/build.xml	(working copy)
@@ -382,6 +382,22 @@
   </target>
 
   <!-- ================================================================== -->
+  <!-- Packages the sources from local working copy with tar-gzip     -->
+  <!-- ================================================================== -->
+  <target name="package-local-src-tgz" depends="init, init-dist"
+    description="--> Packages the Lucene source from the local working copy">
+    <mkdir dir="${common.dir}/build"/>
+    <property name="source.package.file"
+              value="${common.dir}/build/lucene-${version}-src.tgz"/>
+    <delete file="${source.package.file}"/>
+    <tar tarfile="${source.package.file}" compression="gzip" longfile="gnu">
+      <tarfileset prefix="lucene-${version}" dir=".">
+        <patternset refid="lucene.local.src.package.patterns"/>
+      </tarfileset>
+    </tar>
+  </target>
+
+  <!-- ================================================================== -->
   <!-- same as package-tgz-src. it is just here for compatibility.        -->
   <!-- ================================================================== -->
   <target name="dist-src" depends="package-tgz-src"/>
