- 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:
Otis Gospodnetic 2002-10-19 16:06:04 +00:00
parent 84ea488895
commit a01c9c3389
1 changed files with 17 additions and 0 deletions

View File

@ -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>