SOLR-3725: fix package-local-src-tgz to not bring in jars/binary content

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1371688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-08-10 12:38:48 +00:00
parent f1c79b69b6
commit 392ddde4d3
2 changed files with 10 additions and 2 deletions

View File

@ -48,6 +48,9 @@ Bug Fixes
* SOLR-3229: Fixed TermVectorComponent to work with distributed search
(Hang Xie, hossman)
* SOLR-3725: Fixed package-local-src-tgz target to not bring in unnecessary jars
and binary contents. (Michael Dodsworth via rmuir)
================== 4.0.0-BETA ===================

View File

@ -361,12 +361,17 @@
value="${common-solr.dir}/build/${fullnamever}-src.tgz"/>
<delete file="${source.package.file}" failonerror="false" />
<!-- includes/excludes requires a relative path -->
<property name="dist.rel" location="${dist}" relative="yes"/>
<property name="package.dir.rel" location="${package.dir}" relative="yes"/>
<tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
<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
excludes="build/** ${package.dir.rel}/** ${dist.rel}/**
example/webapps/*.war example/lib/**
**/*.jar
lib/README.committers.txt **/data/ **/logs/*
**/*.sh **/bin/ scripts/
.idea/ **/*.iml **/pom.xml" />