Include the NOTICE and LICENSE files in the root of the Jars we build. When building the dist zip and tar files, have them output into a sensible directory name (rather than the current directory), and have them include a single copy of NOTICE and LICENSE
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@490821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba1a02d2d6
commit
1f3d81313a
50
build.xml
50
build.xml
@ -838,7 +838,9 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="compile" description="Creates jar files for distribution">
|
<target name="jar" depends="compile" description="Creates jar files for distribution">
|
||||||
<jar basedir="${main.output.dir}" destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar">
|
||||||
|
<fileset dir="${main.output.dir}" />
|
||||||
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<section name="common">
|
<section name="common">
|
||||||
@ -851,7 +853,9 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</section>
|
</section>
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
<jar basedir="${contrib.output.dir}" destfile="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar">
|
||||||
|
<fileset dir="${contrib.output.dir}" />
|
||||||
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<section name="common">
|
<section name="common">
|
||||||
@ -864,7 +868,9 @@ FORREST_HOME environment variable!</echo>
|
|||||||
</section>
|
</section>
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
<jar basedir="${scratchpad.output.dir}" destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar">
|
<jar destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar">
|
||||||
|
<fileset dir="${scratchpad.output.dir}" />
|
||||||
|
<fileset dir="legal/" />
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}"/>
|
<attribute name="Built-By" value="${user.name}"/>
|
||||||
<section name="common">
|
<section name="common">
|
||||||
@ -882,47 +888,49 @@ FORREST_HOME environment variable!</echo>
|
|||||||
<target name="dist" depends="fail-unless-tools-are-available, compile, site, jar"
|
<target name="dist" depends="fail-unless-tools-are-available, compile, site, jar"
|
||||||
description="Creates the entire distribution into build/dist">
|
description="Creates the entire distribution into build/dist">
|
||||||
|
|
||||||
|
<property name="zipdir" value="${jar.name}-${version.id}" />
|
||||||
|
|
||||||
<zip destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.zip">
|
<zip destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.zip">
|
||||||
<zipfileset dir="legal/"/>
|
<zipfileset dir="legal/" prefix="${zipdir}" />
|
||||||
<zipfileset dir="${build.site}" prefix="docs"/>
|
<zipfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
||||||
<zipfileset file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar"/>
|
<zipfileset file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<zipfileset file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar"/>
|
<zipfileset file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<zipfileset file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"/>
|
<zipfileset file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<zipfileset dir="legal" prefix="legal"/>
|
|
||||||
</zip>
|
</zip>
|
||||||
|
|
||||||
<zip destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.zip">
|
<zip destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.zip">
|
||||||
<zipfileset dir="legal/"/>
|
<zipfileset dir="legal/" prefix="${zipdir}" />
|
||||||
<zipfileset dir="${build.site}" prefix="docs"/>
|
<zipfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
||||||
<zipfileset dir=".">
|
<zipfileset dir="." prefix="${zipdir}">
|
||||||
<exclude name="build/**"/>
|
<exclude name="build/**"/>
|
||||||
<exclude name="scripts/**"/>
|
<exclude name="scripts/**"/>
|
||||||
<exclude name="*.ipr"/>
|
<exclude name="*.ipr"/>
|
||||||
<exclude name="*.iml"/>
|
<exclude name="*.iml"/>
|
||||||
<exclude name="*.iws"/>
|
<exclude name="*.iws"/>
|
||||||
|
<exclude name="*.swp"/>
|
||||||
</zipfileset>
|
</zipfileset>
|
||||||
</zip>
|
</zip>
|
||||||
|
|
||||||
<tar destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.tar.gz"
|
<tar destfile="${dist.dir}/${jar.name}-bin-${version.id}-${DSTAMP}.tar.gz"
|
||||||
compression="gzip">
|
compression="gzip">
|
||||||
<tarfileset dir="legal/"/>
|
<tarfileset dir="legal/" prefix="${zipdir}" />
|
||||||
<tarfileset dir="${build.site}" prefix="docs"/>
|
<tarfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
||||||
<tarfileset file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar"/>
|
<tarfileset file="${dist.dir}/${jar.name}-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<tarfileset file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar"/>
|
<tarfileset file="${dist.dir}/${jar.name}-contrib-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<tarfileset file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar"/>
|
<tarfileset file="${dist.dir}/${jar.name}-scratchpad-${version.id}-${DSTAMP}.jar" prefix="${zipdir}" />
|
||||||
<tarfileset dir="legal" prefix="legal"/>
|
|
||||||
</tar>
|
</tar>
|
||||||
|
|
||||||
<tar destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.tar.gz"
|
<tar destfile="${dist.dir}/${jar.name}-src-${version.id}-${DSTAMP}.tar.gz"
|
||||||
compression="gzip">
|
compression="gzip">
|
||||||
<tarfileset dir="legal/"/>
|
<tarfileset dir="legal/" prefix="${zipdir}" />
|
||||||
<tarfileset dir="${build.site}" prefix="docs"/>
|
<tarfileset dir="${build.site}" prefix="${zipdir}/docs"/>
|
||||||
<tarfileset dir=".">
|
<tarfileset dir="." prefix="${zipdir}">
|
||||||
<exclude name="build/**"/>
|
<exclude name="build/**"/>
|
||||||
<exclude name="scripts/**"/>
|
<exclude name="scripts/**"/>
|
||||||
<exclude name="*.ipr"/>
|
<exclude name="*.ipr"/>
|
||||||
<exclude name="*.iml"/>
|
<exclude name="*.iml"/>
|
||||||
<exclude name="*.iws"/>
|
<exclude name="*.iws"/>
|
||||||
|
<exclude name="*.swp"/>
|
||||||
</tarfileset>
|
</tarfileset>
|
||||||
</tar>
|
</tar>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user