lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: How to add a jar to a contrib build.xml
Date Mon, 10 Mar 2008 19:49:58 GMT
Here is how the span highlighter I have been working on uses the Memory 
contrib (I think I copied this from another contrib that has a dependency):

<?xml version="1.0"?>

<project name="highlighter" default="buildHighlighter">

     Hits highlighter

<import file="../contrib-build.xml"/>

<property name="memory.jar" 

<path id="classpath">
<pathelement path="${lucene.jar}"/>
<pathelement path="${memory.jar}"/>
<pathelement path="${project.classpath}"/>

<target name="buildHighlighter" depends="buildMemory,default" />

<target name="buildMemory" >
<echo>Highlighter building dependency ${memory.jar}</echo>
<ant antfile="../memory/build.xml" target="default" inheritall="false"/>

</project> wrote:
> Hi all,
> perhaps this is a simple question, but I don't know how to do it.
> I'm developing on a new contrib subfolder. My development needs to use
> classes in another contrib subfolder. How do I add the corresponding JAR
> to the build.xml file?
> thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message