blob: f6d51ccf0247bf95ce1d995a6a257755d6c56525 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="package-top-level">
<target name="package">
<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>
<copy todir="${package.output.dir}" failonerror="false">
<fileset dir="resources"/>
</copy>
<ant target="javadoc-api" inheritAll="false">
<property name="target.dir" value="${package.docs.dir}"/>
</ant>
<copy todir="${package.output.dir}/projects">
<fileset dir="${basedir}/..">
<exclude name="**/target/**"/>
<exclude name="**/integration-repo/**"/>
<exclude name="**/ivy-cache/**"/>
<exclude name="**/virgo-build/lib/docbook/**" />
<exclude name="**/virgo-build/lib/findbugs/**" />
</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}"/>
</zip>
</target>
</project>