| <?xml version="1.0" encoding="UTF-8"?> |
| <project name="build-web-container" xmlns:ivy="antlib:org.apache.ivy.ant"> |
| |
| <path id="unit.test.bundles"> |
| <pathelement location="../org.eclipse.gemini.web.core"/> |
| <pathelement location="../org.eclipse.gemini.web.tomcat"/> |
| <pathelement location="../org.eclipse.gemini.web.extender"/> |
| </path> |
| |
| <path id="bundles"> |
| <path refid="unit.test.bundles"/> |
| <pathelement location="../org.eclipse.gemini.web"/> |
| <pathelement location="../org.eclipse.gemini.web.test"/> |
| </path> |
| |
| <property file="${basedir}/../build.properties"/> |
| <property file="${basedir}/../build.versions"/> |
| |
| <import file="${basedir}/../virgo-build/multi-bundle/default.xml"/> |
| |
| <property name="collect.output.dir" value="${target.dir}/bundles"/> |
| |
| <target name="precommit" depends="clean, clean-integration, test, findbugs"/> |
| |
| <target name="collect" depends="ivy.init"> |
| <mkdir dir="${collect.output.dir}"/> |
| <ivy:retrieve organisation="org.eclipse.gemini.web" module="org.eclipse.gemini.web" inline="true" type="jar" pattern="${collect.output.dir}/[artifact]-[revision].[ext]"/> |
| </target> |
| |
| <target name="package" depends="ivy.init"> |
| <delete dir="${package.output.dir}" quiet="true"/> |
| <mkdir dir="${package.output.dir}"/> |
| |
| <ivy:resolve resolveId="copy.path" file="${basedir}/package-ivy.xml" transitive="false"/> |
| <ivy:retrieve resolveId="copy.path" pattern="${package.output.dir}/[artifact]-[revision].[ext]" conf="package" type="jar"/> |
| |
| <ivy:resolve resolveId="copy.path" file="${basedir}/dependencies-ivy.xml" transitive="false"/> |
| <ivy:retrieve resolveId="copy.path" pattern="${package.output.dir}/dep/[artifact]-[revision].[ext]" conf="dep" type="jar"/> |
| |
| <copy todir="${package.output.dir}" failonerror="false"> |
| <fileset dir="${basedir}/resources"/> |
| </copy> |
| |
| <mkdir dir="${artifacts.dir}"/> |
| <zip destfile="${package.output.file}"> |
| <zipfileset dir="${package.dir}"/> |
| </zip> |
| </target> |
| |
| </project> |