pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / contrib / facet / build.xml
diff --git a/lucene-java-3.5.0/lucene/contrib/facet/build.xml b/lucene-java-3.5.0/lucene/contrib/facet/build.xml
new file mode 100644 (file)
index 0000000..abf03e5
--- /dev/null
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+        http://www.apache.org/licenses/LICENSE-2.0
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+ -->
+
+<project name="facet" default="default">
+
+  <description>
+    Faceted search module
+  </description>
+
+  <import file="../contrib-build.xml"/>
+
+  <property name="examples.dir" location="src/examples"/>
+
+  <path id="classpath">
+    <path refid="base.classpath" />
+    <pathelement location="${build.dir}/classes/java" />
+    <pathelement location="${build.dir}/classes/examples" />
+  </path>
+    
+  <path id="examples.classpath">
+    <path refid="classpath" />
+    <pathelement location="${build.dir}/classes/java" />
+  </path>
+
+  <path id="test.classpath">
+    <path refid="test.base.classpath" />
+    <pathelement location="${build.dir}/classes/examples" />
+  </path>
+
+  <target name="compile-examples" description="Compiles Facets examples">
+    <compile srcdir="${examples.dir}" destdir="${build.dir}/classes/examples">
+      <classpath refid="examples.classpath" />
+    </compile>
+  </target>
+  
+  <target name="jar-examples" depends="compile-examples">
+    <jarify basedir="${build.dir}/classes/examples" 
+          destfile="${build.dir}/${final.name}-examples.jar" 
+          title="Lucene Search Engine: ${ant.project.name}-examples" />
+  </target>
+    
+  <target name="compile-core" depends="common.compile-core,compile-examples" description="Compiles facet classes" />
+
+  <target name="jar-core" depends="common.jar-core,jar-examples" />
+
+  <target name="javadocs" depends="compile-core">
+       <sequential>
+      <mkdir dir="${javadoc.dir}/contrib-${name}"/>
+      <copy todir="${javadoc.dir}/contrib-${name}" file="docs/userguide.html" />
+      <!-- javadoc core classes -->
+      <invoke-javadoc
+        destdir="${javadoc.dir}/contrib-${name}"
+        title="${Name} ${version} contrib-${name} API">
+        <sources>
+          <link href=""/>
+          <packageset dir="${src.dir}"/>
+          <packageset dir="${examples.dir}"/>
+        </sources>
+      </invoke-javadoc>
+      <jarify basedir="${javadoc.dir}/contrib-${name}" destfile="${build.dir}/${final.name}-javadoc.jar"/>
+    </sequential>
+  </target>
+    
+</project>