Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Christopher John Male201b8a8bd3bb
diff --git a/lucene/contrib/contrib-build.xml b/lucene/contrib/contrib-build.xml
index 572dd45c243..1dd6cd45ca9 100644
--- a/lucene/contrib/contrib-build.xml
+++ b/lucene/contrib/contrib-build.xml
@@ -132,13 +132,14 @@
<macrodef name="module-uptodate">
<attribute name="name"/>
<attribute name="property" default="@{name}.uptodate"/>
+ <attribute name="module-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}/../modules/@{name}/build/lucene-@{name}-${version}.jar"/>
<sequential>
<property name="@{classpath.property}" location="@{jarfile}"/>
<uptodate property="@{property}" targetfile="@{jarfile}">
- <srcfiles dir="${common.dir}/../modules/@{name}/src/java" includes="**/*.java"/>
+ <srcfiles dir="${common.dir}/../modules/@{module-src-name}/src/java" includes="**/*.java"/>
</uptodate>
</sequential>
</macrodef>