lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/WordNet build.xml
Date Mon, 26 Jan 2004 17:26:38 GMT
ehatcher    2004/01/26 09:26:38

  Modified:    contributions/WordNet build.xml
  Log:
  add building of index and looking up a synonym to the build file
  
  Revision  Changes    Path
  1.2       +42 -0     jakarta-lucene-sandbox/contributions/WordNet/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/WordNet/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	6 Jan 2004 01:30:01 -0000	1.1
  +++ build.xml	26 Jan 2004 17:26:38 -0000	1.2
  @@ -6,5 +6,47 @@
       WordNet
     </description>
   
  +  <property name="prolog.file" location="prologwn/wn_s.pl"/>
  +  <property name="synindex.dir" location="index"/>
  +
  +  <available property="synindex.exists" file="${synindex.dir}" type="dir"/>
  +
     <import file="../common.xml"/>
  +
  +  <target name="index" depends="compile">
  +    <fail if="synindex.exists">
  +      Index already exists - must remove first.
  +    </fail>
  +
  +    <java classname="org.apache.lucene.wordnet.Syns2Index">
  +      <classpath>
  +        <path refid="compile.classpath"/>
  +        <pathelement location="${build.classes.dir}"/>
  +      </classpath>
  +
  +      <arg file="${prolog.file}"/>
  +      <arg file="${synindex.dir}"/>
  +    </java>
  +  </target>
  +
  +  <target name="synonym">
  +    <fail unless="synindex.exists">
  +      Index does not exist.
  +    </fail>
  +
  +    <fail unless="word">
  +      Must specify 'word' property.
  +    </fail>
  +    
  +    <java classname="org.apache.lucene.wordnet.SynLookup">
  +      <classpath>
  +        <path refid="compile.classpath"/>
  +        <pathelement location="${build.classes.dir}"/>
  +      </classpath>
  +
  +      <arg file="${synindex.dir}"/>
  +      <arg value="${word}"/>
  +    </java>
  +  </target>
  +
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message