mirror of https://github.com/apache/lucene.git
1. Moving solr-jar to common-build.xml so it can be used by contribs
2. Adding correct manifest information to DataImportHandler jar git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@685164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6ce91c9515
commit
b25d5b3a33
19
build.xml
19
build.xml
|
@ -46,25 +46,6 @@
|
||||||
<isset property="clover.present"/>
|
<isset property="clover.present"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<!-- Macro for building Jars -->
|
|
||||||
<macrodef name="solr-jar">
|
|
||||||
<attribute name="destfile" />
|
|
||||||
<attribute name="basedir" />
|
|
||||||
<attribute name="includes" default="org/apache/**" />
|
|
||||||
<attribute name="manifest" default="${dest}/META-INF/MANIFEST.MF" />
|
|
||||||
<element name="nested" optional="true" implicit="true" />
|
|
||||||
<sequential>
|
|
||||||
<jar destfile="@{destfile}"
|
|
||||||
basedir="@{basedir}"
|
|
||||||
includes="@{includes}"
|
|
||||||
filesetmanifest="skip"
|
|
||||||
manifest="@{manifest}">
|
|
||||||
<metainf dir="${basedir}" includes="LICENSE.txt,NOTICE.txt"/>
|
|
||||||
<nested />
|
|
||||||
</jar>
|
|
||||||
</sequential>
|
|
||||||
</macrodef>
|
|
||||||
|
|
||||||
<!-- Default target: usage. Prints out instructions. -->
|
<!-- Default target: usage. Prints out instructions. -->
|
||||||
<target name="usage"
|
<target name="usage"
|
||||||
|
|
|
@ -118,6 +118,25 @@
|
||||||
</javac>
|
</javac>
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- Macro for building Jars -->
|
||||||
|
<macrodef name="solr-jar">
|
||||||
|
<attribute name="destfile" />
|
||||||
|
<attribute name="basedir" />
|
||||||
|
<attribute name="includes" default="org/apache/**" />
|
||||||
|
<attribute name="manifest" default="${common.dir}/${dest}/META-INF/MANIFEST.MF" />
|
||||||
|
<element name="nested" optional="true" implicit="true" />
|
||||||
|
<sequential>
|
||||||
|
<jar destfile="@{destfile}"
|
||||||
|
basedir="@{basedir}"
|
||||||
|
includes="@{includes}"
|
||||||
|
filesetmanifest="skip"
|
||||||
|
manifest="@{manifest}">
|
||||||
|
<metainf dir="${common.dir}" includes="LICENSE.txt,NOTICE.txt"/>
|
||||||
|
<nested />
|
||||||
|
</jar>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
<!-- Macro for building checksum files
|
<!-- Macro for building checksum files
|
||||||
This is only needed until the "format" option is supported
|
This is only needed until the "format" option is supported
|
||||||
|
@ -214,13 +233,13 @@
|
||||||
<!-- Creates a Manifest file for Jars and WARs -->
|
<!-- Creates a Manifest file for Jars and WARs -->
|
||||||
<target name="make-manifest">
|
<target name="make-manifest">
|
||||||
<!-- If possible, include the svnversion -->
|
<!-- If possible, include the svnversion -->
|
||||||
<exec dir="." executable="svnversion" outputproperty="svnversion" failifexecutionfails="false">
|
<exec dir="${common.dir}" executable="svnversion" outputproperty="svnversion" failifexecutionfails="false">
|
||||||
<arg line="."/>
|
<arg line="."/>
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<!-- no description, don't advertise -->
|
<!-- no description, don't advertise -->
|
||||||
<mkdir dir="${dest}/META-INF/" />
|
<mkdir dir="${common.dir}/${dest}/META-INF/" />
|
||||||
<manifest mode="replace" file="${dest}/META-INF/MANIFEST.MF">
|
<manifest mode="replace" file="${common.dir}/${dest}/META-INF/MANIFEST.MF">
|
||||||
<!--
|
<!--
|
||||||
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest
|
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest
|
||||||
http://java.sun.com/j2se/1.5.0/docs/guide/versioning/spec/versioning2.html
|
http://java.sun.com/j2se/1.5.0/docs/guide/versioning/spec/versioning2.html
|
||||||
|
|
|
@ -60,8 +60,9 @@
|
||||||
</solr-javac>
|
</solr-javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build" depends="compile">
|
<target name="build" depends="compile, make-manifest">
|
||||||
<jar destfile="target/${fullnamever}.jar" basedir="target/classes" />
|
<solr-jar destfile="target/${fullnamever}.jar" basedir="target/classes"
|
||||||
|
manifest="${common.dir}/${dest}/META-INF/MANIFEST.MF" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compileTests" depends="compile">
|
<target name="compileTests" depends="compile">
|
||||||
|
|
Loading…
Reference in New Issue