mirror of https://github.com/apache/lucene.git
- Modified targets ininit and jar, in order to get a custom MANIFEST.MF in a
Jar file. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84ea488895
commit
a01c9c3389
17
build.xml
17
build.xml
|
@ -53,6 +53,11 @@
|
|||
property="junit.present"
|
||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
||||
/>
|
||||
|
||||
<tstamp>
|
||||
<format property="DSTAMP" pattern="yyyy-MM-dd"/>
|
||||
<format property="TSTAMP" pattern="HH:mm:ss"/>
|
||||
</tstamp>
|
||||
</target>
|
||||
|
||||
<target name="javacc_check" depends="init" unless="javacc.present">
|
||||
|
@ -124,10 +129,22 @@
|
|||
<!-- -->
|
||||
<!-- ================================================================== -->
|
||||
<target name="jar" depends="compile" if="javacc.present">
|
||||
|
||||
<!-- Create Jar MANIFEST file -->
|
||||
<echo file="${build.manifest}">Manifest-Version: 1.0
|
||||
Created-By: Apache Jakarta
|
||||
|
||||
Name: org/apache/lucene
|
||||
Implementation-Title: org.apache.lucene
|
||||
Implementation-Version: build ${DSTAMP} ${TSTAMP}
|
||||
Implementation-Vendor: Apache Jakarta
|
||||
</echo>
|
||||
|
||||
<jar
|
||||
jarfile="${build.dir}/${final.name}.jar"
|
||||
basedir="${build.classes}"
|
||||
excludes="**/*.java"
|
||||
manifest="${build.manifest}"
|
||||
/>
|
||||
</target>
|
||||
|
||||
|
|
Loading…
Reference in New Issue