mirror of https://github.com/apache/lucene.git
made build.xml accept db.version property argument
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@355282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e6400c63f0
commit
f962bd4dae
|
@ -5,25 +5,27 @@
|
|||
Lucene DB integration
|
||||
</description>
|
||||
|
||||
<path id="db-4.3.29">
|
||||
<pathelement location="lib/db-4.3.29.jar"/>
|
||||
<property name="db.version" value="4.3.29"/>
|
||||
|
||||
<path id="db.jar">
|
||||
<pathelement location="lib/db-${db.version}.jar"/>
|
||||
</path>
|
||||
|
||||
<available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
|
||||
<classpath refid="db-4.3.29"/>
|
||||
<classpath refid="db.jar"/>
|
||||
</available>
|
||||
|
||||
<pathconvert property="project.classpath"
|
||||
targetos="unix"
|
||||
refid="db-4.3.29"
|
||||
refid="db.jar"
|
||||
/>
|
||||
|
||||
<import file="../contrib-build.xml"/>
|
||||
|
||||
<target name="get-db-jar" unless="db.jar.exists">
|
||||
<mkdir dir="lib"/>
|
||||
<get src="http://downloads.osafoundation.org/db/db-4.3.29.jar"
|
||||
dest="lib/db-4.3.29.jar"
|
||||
<get src="http://downloads.osafoundation.org/db/db-${db.version}.jar"
|
||||
dest="lib/db-${db.version}.jar"
|
||||
/>
|
||||
</target>
|
||||
|
||||
|
|
Loading…
Reference in New Issue