2010-03-17 17:31:44 -04:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
2010-03-17 17:54:11 -04:00
|
|
|
<project name="lucene-solr" default="test" basedir=".">
|
2010-04-13 09:28:56 -04:00
|
|
|
<target name="test" description="Test both Lucene and Solr">
|
2010-03-17 17:31:44 -04:00
|
|
|
<sequential>
|
|
|
|
<subant target="test" inheritall="false" failonerror="true">
|
2010-03-17 18:25:11 -04:00
|
|
|
<fileset dir="lucene" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
<fileset dir="modules" includes="build.xml" />
|
2010-03-17 18:25:11 -04:00
|
|
|
<fileset dir="solr" includes="build.xml" />
|
2010-03-17 17:31:44 -04:00
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
2010-03-17 18:25:11 -04:00
|
|
|
|
2010-04-13 09:28:56 -04:00
|
|
|
<target name="compile" description="Compile Lucene and Solr">
|
|
|
|
<sequential>
|
|
|
|
<subant target="compile" inheritall="false" failonerror="true">
|
2010-05-07 18:51:45 -04:00
|
|
|
<fileset dir="lucene" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
<fileset dir="modules" includes="build.xml" />
|
2010-04-13 09:28:56 -04:00
|
|
|
<fileset dir="solr" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2011-01-22 02:26:17 -05:00
|
|
|
<property name="version" value="4.0-SNAPSHOT"/>
|
2011-01-20 22:44:13 -05:00
|
|
|
<target name="get-maven-poms"
|
|
|
|
description="Copy Maven POMs from dev-tools/maven/ to their target locations">
|
2011-01-24 14:33:14 -05:00
|
|
|
<copy todir="." overwrite="true">
|
2011-01-20 22:44:13 -05:00
|
|
|
<fileset dir="${basedir}/dev-tools/maven"/>
|
2011-01-22 02:26:17 -05:00
|
|
|
<filterset begintoken="@" endtoken="@">
|
|
|
|
<filter token="version" value="${version}"/>
|
|
|
|
</filterset>
|
|
|
|
<globmapper from="*.template" to="*"/>
|
2011-01-20 22:44:13 -05:00
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2010-06-16 22:25:11 -04:00
|
|
|
<target name="generate-maven-artifacts" description="Generate Maven Artifacts for Lucene and Solr">
|
2010-09-19 23:58:23 -04:00
|
|
|
<property name="maven.dist.dir" location="dist/maven" />
|
|
|
|
<mkdir dir="${maven.dist.dir}" />
|
|
|
|
|
2010-06-16 22:25:11 -04:00
|
|
|
<sequential>
|
|
|
|
<subant target="generate-maven-artifacts" inheritall="false" failonerror="true">
|
2010-09-19 23:58:23 -04:00
|
|
|
<property name="maven.dist.dir" location="${maven.dist.dir}" />
|
2010-06-16 22:25:11 -04:00
|
|
|
<fileset dir="lucene" includes="build.xml" />
|
2010-08-19 15:58:36 -04:00
|
|
|
<fileset dir="modules" includes="build.xml" />
|
2010-06-16 22:25:11 -04:00
|
|
|
<fileset dir="solr" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2010-12-31 16:08:18 -05:00
|
|
|
<target name="eclipse" description="Setup Eclipse configuration">
|
|
|
|
<copy file="dev-tools/eclipse/dot.classpath" tofile=".classpath" overwrite="true"/>
|
|
|
|
<mkdir dir=".settings"/>
|
|
|
|
<copy file="dev-tools/eclipse/resources.prefs"
|
|
|
|
tofile=".settings/org.eclipse.core.resources.prefs" overwrite="true"/>
|
|
|
|
<echo>Running Lucene contrib db/bdb-je task 'get-je-jar' ...</echo>
|
|
|
|
<subant target="get-je-jar">
|
|
|
|
<fileset dir="lucene/contrib/db/bdb-je" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
<echo>Running Lucene contrib db/bdb task 'get-db-jar' ...</echo>
|
|
|
|
<subant target="get-db-jar">
|
|
|
|
<fileset dir="lucene/contrib/db/bdb" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
<echo>
|
|
|
|
SUCCESS: You must right-click your project and choose Refresh
|
2011-01-05 09:28:52 -05:00
|
|
|
Please note, your project must use a Java 6 JRE
|
2010-12-31 16:08:18 -05:00
|
|
|
</echo>
|
|
|
|
</target>
|
|
|
|
|
2010-12-30 14:49:51 -05:00
|
|
|
<condition property="isMac"><os family="mac"/></condition>
|
|
|
|
<condition property="isUnix"><os family="unix"/></condition>
|
|
|
|
<condition property="isWindows"><os family="windows"/></condition>
|
|
|
|
<property environment="env"/>
|
|
|
|
<target name="idea" depends="copy-idea-files,finish-idea-setup-windows,
|
|
|
|
finish-idea-setup-mac,
|
2011-01-04 18:44:23 -05:00
|
|
|
finish-idea-setup-unix"
|
|
|
|
description="Setup IntelliJ IDEA configuration files"/>
|
|
|
|
<target name="copy-idea-files">
|
2010-12-30 14:49:51 -05:00
|
|
|
<copy todir=".">
|
|
|
|
<fileset dir="dev-tools/idea">
|
|
|
|
<exclude name="Intellij-Lucene-Codestyle.xml"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<echo>Running Lucene contrib db/bdb-je task 'get-je-jar' ...</echo>
|
|
|
|
<subant target="get-je-jar">
|
|
|
|
<fileset dir="lucene/contrib/db/bdb-je" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
<echo>Running Lucene contrib db/bdb task 'get-db-jar' ...</echo>
|
|
|
|
<subant target="get-db-jar">
|
|
|
|
<fileset dir="lucene/contrib/db/bdb" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
</target>
|
|
|
|
<target name="finish-idea-setup-windows" if="isWindows">
|
|
|
|
<echo>
|
|
|
|
To install the Lucene/Solr codestyle file, copy
|
|
|
|
dev-tools\idea\Intellij-Lucene-Codestyle.xml to
|
|
|
|
${env.HOMEDRIVE}${env.HOMEPATH}\.IntelliJIdeaXX\config\codestyles\
|
|
|
|
where "XX" is "90" for IntelliJ 9.0.X, "10" for 10.0.X, etc.
|
|
|
|
After restarting IntelliJ, select "Lucene"
|
|
|
|
from the dropdown list at:
|
|
|
|
Settings | Code Style | Use global settings | Scheme name
|
|
|
|
|
|
|
|
To complete IntelliJ IDEA setup, you must manually configure
|
|
|
|
Project Structure | Project | Project SDK.
|
|
|
|
</echo>
|
|
|
|
</target>
|
|
|
|
<target name="finish-idea-setup-mac" if="isMac">
|
|
|
|
<echo>
|
|
|
|
To install the Lucene/Solr codestyle file, copy
|
|
|
|
dev-tools/idea/Intellij-Lucene-Codestyle.xml to
|
|
|
|
~/Library/Preferences/IntelliJXX/codestyles/
|
|
|
|
where "XX" is "90" for IntelliJ 9.0.X, "10" for 10.0.X, etc.
|
|
|
|
After restarting IntelliJ, select "Lucene"
|
|
|
|
from the dropdown list at:
|
|
|
|
Settings | Code Style | Use global settings | Scheme name
|
|
|
|
|
|
|
|
To complete IntelliJ IDEA setup, you must manually configure
|
|
|
|
Project Structure | Project | Project SDK.
|
|
|
|
</echo>
|
|
|
|
</target>
|
|
|
|
<target name="finish-idea-setup-unix" if="isUnix">
|
|
|
|
<echo>
|
|
|
|
To install the Lucene/Solr codestyle file, copy
|
|
|
|
dev-tools/idea/Intellij-Lucene-Codestyle.xml to
|
|
|
|
~/.IntelliJIdeaXX/config/codestyles/
|
|
|
|
where "XX" is "90" for IntelliJ 9.0.X, "10" for 10.0.X, etc.
|
|
|
|
After restarting IntelliJ, select "Lucene"
|
|
|
|
from the dropdown list at:
|
|
|
|
Settings | Code Style | Use global settings | Scheme name
|
|
|
|
|
|
|
|
To complete IntelliJ IDEA setup, you must manually configure
|
|
|
|
Project Structure | Project | Project SDK.
|
|
|
|
</echo>
|
|
|
|
</target>
|
|
|
|
<target name="clean-idea"
|
|
|
|
description="Removes all IntelliJ IDEA configuration files">
|
|
|
|
<delete dir=".idea" failonerror="true"/>
|
|
|
|
<delete failonerror="true">
|
|
|
|
<fileset dir="." includes="*.iml,*.ipr,*.iws"/>
|
|
|
|
<fileset dir="solr" includes="**/*.iml"/>
|
|
|
|
<fileset dir="lucene" includes="**/*.iml"/>
|
|
|
|
<fileset dir="modules" includes="**/*.iml"/>
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2010-04-13 09:28:56 -04:00
|
|
|
<target name="clean" description="Clean Lucene and Solr">
|
2010-09-19 23:58:23 -04:00
|
|
|
<delete dir="dist" />
|
2010-03-17 18:25:11 -04:00
|
|
|
<sequential>
|
|
|
|
<subant target="clean" inheritall="false" failonerror="true">
|
|
|
|
<fileset dir="lucene" includes="build.xml" />
|
2010-05-05 10:26:59 -04:00
|
|
|
<fileset dir="modules" includes="build.xml" />
|
2010-03-17 18:25:11 -04:00
|
|
|
<fileset dir="solr" includes="build.xml" />
|
|
|
|
</subant>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2010-04-13 09:28:56 -04:00
|
|
|
</project>
|