2011-07-08 02:41:23 -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.
|
|
|
|
-->
|
|
|
|
<project name="solr-webapp" default="default">
|
|
|
|
<description>Solr webapp</description>
|
|
|
|
|
|
|
|
<import file="../common-build.xml"/>
|
|
|
|
|
2012-01-16 07:54:01 -05:00
|
|
|
<property name="exclude.from.war" value="" />
|
|
|
|
<property name="solr.war.suffix" value="" />
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="test" depends="compile-test-solr-core">
|
2012-03-06 12:04:19 -05:00
|
|
|
<!-- no more JSP -->
|
2011-07-08 02:41:23 -04:00
|
|
|
</target>
|
|
|
|
|
2012-03-30 14:04:43 -04:00
|
|
|
<!-- this module has no javadocs -->
|
|
|
|
<target name="javadocs"/>
|
|
|
|
|
|
|
|
<!-- this module has no jar either -->
|
|
|
|
<target name="jar-core"/>
|
|
|
|
|
|
|
|
<!-- nothing to compile -->
|
|
|
|
<target name="compile-core"/>
|
|
|
|
<target name="compile-test"/>
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="dist"
|
|
|
|
description="Creates the Solr WAR Distribution file."
|
|
|
|
depends="test, init-dist, dist-core, dist-solrj, lucene-jars-to-solr">
|
|
|
|
<build-manifest title="Apache Solr Search Server"
|
|
|
|
implementation.title="org.apache.solr"
|
|
|
|
spec.version="${solr.spec.version}"/>
|
|
|
|
<ant dir="${common-solr.dir}" inheritall="false" target="contribs-add-to-war"/>
|
2012-01-16 07:54:01 -05:00
|
|
|
<war destfile="${dist}/apache-solr-${version}${solr.war.suffix}.war"
|
2011-07-08 02:41:23 -04:00
|
|
|
webxml="web/WEB-INF/web.xml"
|
2012-02-15 10:30:53 -05:00
|
|
|
manifest="${manifest.file}">
|
2012-09-06 18:47:01 -04:00
|
|
|
<lib dir="${common-solr.dir}/core/lib" excludes="${exclude.from.war},${common.classpath.excludes}">
|
2011-07-08 02:41:23 -04:00
|
|
|
<exclude name="servlet-api*.jar" />
|
|
|
|
<exclude name="easymock-*.jar" />
|
|
|
|
</lib>
|
2012-09-06 18:47:01 -04:00
|
|
|
<lib dir="${common-solr.dir}/solrj/lib" excludes="${exclude.from.war},${common.classpath.excludes}"/>
|
2012-04-04 13:53:32 -04:00
|
|
|
<lib dir="${lucene-libs}" excludes="${exclude.from.war},${common.classpath.excludes}" />
|
|
|
|
<lib dir="${dist}" excludes="${exclude.from.war},${common.classpath.excludes}">
|
2011-07-08 02:41:23 -04:00
|
|
|
<include name="apache-solr-solrj-${version}.jar" />
|
|
|
|
<include name="apache-solr-core-${version}.jar" />
|
|
|
|
</lib>
|
2012-01-16 07:54:01 -05:00
|
|
|
<fileset dir="${dest}/web" excludes="${exclude.from.war}"/> <!-- contribs' additions -->
|
|
|
|
<fileset dir="web" excludes="${exclude.from.war}"/>
|
|
|
|
<metainf dir="${common-solr.dir}" includes="LICENSE.txt,NOTICE.txt" excludes="${exclude.from.war}"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
</war>
|
|
|
|
</target>
|
|
|
|
|
2012-04-03 16:52:02 -04:00
|
|
|
<target name="dist-maven" depends="dist, filter-pom-templates, install-maven-tasks, m2-deploy-solr-parent-pom">
|
|
|
|
<m2-deploy jar.file="${dist}/apache-solr-${version}.war"
|
|
|
|
pom.xml="${filtered.pom.templates.dir}/solr/webapp/pom.xml"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
</target>
|
|
|
|
</project>
|