| <?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"/> |
| |
| <path id="test.apps.bundles"> |
| <pathelement location="../test-bundles/simple-manifest-only"/> |
| <pathelement location="../test-bundles/simple-war"/> |
| <pathelement location="../test-bundles/war-with-another-servlet"/> |
| <pathelement location="../test-bundles/war-with-jsp"/> |
| <pathelement location="../test-bundles/war-with-servlet"/> |
| <pathelement location="../test-bundles/war-with-tld"/> |
| </path> |
| |
| <target name="test" depends="build-test-apps, quality-multi-bundle.test" description="Rebuild all the test apps before running the test suites"> |
| </target> |
| |
| <target name="build-test-apps" description="Build all of the test applications"> |
| <all-bundles target="clean" buildpathRef="test.apps.bundles"></all-bundles> |
| <all-bundles target="jar" buildpathRef="test.apps.bundles"></all-bundles> |
| </target> |
| |
| <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> |