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:
Andreas Vajda 2005-12-08 23:49:39 +00:00
parent e6400c63f0
commit f962bd4dae
1 changed files with 8 additions and 6 deletions

View File

@ -5,25 +5,27 @@
Lucene DB integration Lucene DB integration
</description> </description>
<path id="db-4.3.29"> <property name="db.version" value="4.3.29"/>
<pathelement location="lib/db-4.3.29.jar"/>
<path id="db.jar">
<pathelement location="lib/db-${db.version}.jar"/>
</path> </path>
<available classname="com.sleepycat.db.internal.Db" property="db.jar.exists"> <available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
<classpath refid="db-4.3.29"/> <classpath refid="db.jar"/>
</available> </available>
<pathconvert property="project.classpath" <pathconvert property="project.classpath"
targetos="unix" targetos="unix"
refid="db-4.3.29" refid="db.jar"
/> />
<import file="../contrib-build.xml"/> <import file="../contrib-build.xml"/>
<target name="get-db-jar" unless="db.jar.exists"> <target name="get-db-jar" unless="db.jar.exists">
<mkdir dir="lib"/> <mkdir dir="lib"/>
<get src="http://downloads.osafoundation.org/db/db-4.3.29.jar" <get src="http://downloads.osafoundation.org/db/db-${db.version}.jar"
dest="lib/db-4.3.29.jar" dest="lib/db-${db.version}.jar"
/> />
</target> </target>