| <?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> |
| |
| <all-bundles target="clean" buildpathRef="doc.bundles" /> |
| <all-bundles target="doc-html" buildpathRef="doc.bundles"> |
| <property name="docbook.output.dir" value="${package.docs.dir}"/> |
| </all-bundles> |
| |
| <all-bundles target="clean" buildpathRef="sample.app.bundles" /> |
| <all-bundles target="jar" buildpathRef="sample.app.bundles" /> |
| <all-bundles target="package" buildpathRef="sample.app.bundles"> |
| <property name="package.output.dir" value="${package.output.dir}"/> |
| </all-bundles> |
| |
| <copy todir="${package.output.dir}" failonerror="false"> |
| <fileset dir="${basedir}/resources"/> |
| </copy> |
| |
| <ant target="javadoc-api" inheritAll="false"> |
| <property name="target.dir" value="${package.docs.dir}"/> |
| </ant> |
| |
| <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> |