LUCENE-3244: Added ability to define the contrib's src directory

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1139989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christopher John Male 2011-06-27 01:29:34 +00:00
parent b5f676b992
commit 6897f0cc45
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@
<macrodef name="contrib-uptodate">
<attribute name="name"/>
<attribute name="property" default="@{name}.uptodate"/>
<attribute name="contrib-src-name" default="${name}"/>
<attribute name="classpath.property" default="@{name}.jar"/>
<!-- set jarfile only, if the target jar file has no generic name, applies to analyzers with its common and smartcn subdir -->
<attribute name="jarfile" default="${common.dir}/build/contrib/@{name}/lucene-@{name}-${version}.jar"/>
@ -123,7 +124,7 @@
<!--<echo message="Checking '@{jarfile}' against source folder '${common.dir}/contrib/@{name}/src/java'"/>-->
<property name="@{classpath.property}" location="@{jarfile}"/>
<uptodate property="@{property}" targetfile="@{jarfile}">
<srcfiles dir="${common.dir}/contrib/@{name}/src/java" includes="**/*.java"/>
<srcfiles dir="${common.dir}/contrib/@{contrib-src-name}/src/java" includes="**/*.java"/>
</uptodate>
</sequential>
</macrodef>