|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="package-top-level">
|
|
|
|
|
|
|
|
<target name="package" description="Creates the release package for this project">
|
|
|
|
<delete dir="${package.output.dir}" quiet="true"/>
|
|
|
|
<mkdir dir="${package.output.dir}"/>
|
|
|
|
<delete file="${package.output.file}" quiet="true"/>
|
|
|
|
<mkdir dir="${artifacts.dir}"/>
|
|
|
|
|
|
|
|
<all-bundles target="package">
|
|
|
|
<property name="package.output.dir" value="${package.output.dir}"/>
|
|
|
|
</all-bundles>
|
|
|
|
|
|
|
|
<ant target="javadoc-api" inheritAll="false">
|
|
|
|
<property name="target.dir" value="${package.docs.dir}"/>
|
|
|
|
</ant>
|
|
|
|
|
|
|
|
<!-- Reference Document START-->
|
|
|
|
<path id="doc.projects">
|
|
|
|
<path location="${basedir}/../spring-framework-reference"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<all-bundles target="doc" buildpathRef="doc.projects"/>
|
|
|
|
|
|
|
|
<delete>
|
|
|
|
<fileset dir="${basedir}/../spring-framework-reference" includes="**/*.zip"/>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<all-bundles target="package" buildpathRef="doc.projects">
|
|
|
|
<property name="package.output.dir" value="${package.output.dir}"/>
|
|
|
|
</all-bundles>
|
|
|
|
|
|
|
|
<!-- Reference Document END-->
|
|
|
|
|
|
|
|
<copy todir="${package.output.dir}">
|
|
|
|
<fileset dir="${basedir}/resources"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy todir="${package.output.dir}/projects">
|
|
|
|
<fileset dir="${basedir}/..">
|
|
|
|
<exclude name="*/target/**"/>
|
|
|
|
<exclude name="integration-repo/**"/>
|
|
|
|
<exclude name="ivy-cache/**"/>
|
|
|
|
<exclude name="spring-build/lib/docbook/**" />
|
|
|
|
<exclude name="**/*OLD*/**"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<replaceregexp match="build.stamp.*\n" replace="" flags="g"
|
|
|
|
file="${package.output.dir}/projects/build.properties"/>
|
|
|
|
|
|
|
|
<replaceregexp match="release.type=.*" replace="release.type=integration" flags="g"
|
|
|
|
file="${package.output.dir}/projects/build.properties"/>
|
|
|
|
|
|
|
|
<zip destfile="${package.output.file}">
|
|
|
|
<zipfileset dir="${package.dir}">
|
|
|
|
<exclude name="${package.basename}/docs/**"/>
|
|
|
|
</zipfileset>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<zip destfile="${artifacts.dir}/${package.basename}-with-docs.zip">
|
|
|
|
<zipfileset dir="${package.dir}"/>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
<zip destfile="${artifacts.dir}/${package.basename}-dependencies.zip">
|
|
|
|
<zipfileset dir="${basedir}/../ivy-cache/repository">
|
|
|
|
<exclude name="org.apache.velocity/org.apache.velocity.docbookframework.dist/**"/>
|
|
|
|
</zipfileset>
|
|
|
|
</zip>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|