| <?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"/> | 
 | 		<pathelement location="../org.eclipse.gemini.web.jaspic.fragment"/> | 
 | 	</path> | 
 | 	 | 
 | 	<path id="bundles"> | 
 | 		<path refid="unit.test.bundles"/> | 
 | 		<pathelement location="../org.eclipse.gemini.web"/> | 
 | 		<pathelement location="../test-bundles/customizer-bundle"/> | 
 | 		<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"/> | 
 | 		<pathelement location="../test-bundles/fragment-provides-web-xml"/> | 
 | 		<pathelement location="../test-bundles/war-with-web-xml-from-fragment"/> | 
 | 		<pathelement location="../test-bundles/war-with-context-xml-custom-classloader"/> | 
 | 		<pathelement location="../test-bundles/war-with-context-xml-cross-context"/> | 
 | 		<pathelement location="../test-bundles/war-with-annotations"/> | 
 | 		<pathelement location="../test-bundles/war-with-resource-references"/> | 
 | 		<pathelement location="../test-bundles/websocket"/> | 
 | 	</path> | 
 |  | 
 | 	<path id="doc.bundles"> | 
 | 		<pathelement location="../org.eclipse.gemini.web.documentation/user-guide"/> | 
 | 		<pathelement location="../org.eclipse.gemini.web.documentation/programmer-guide"/> | 
 | 	</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="${project.organisation}" 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> | 
 |  | 
 | 		<all-bundles target="package" buildpathRef="doc.bundles"> | 
 | 			<property name="package.output.dir" value="${package.output.dir}"/> | 
 | 		</all-bundles> | 
 |  | 
 | 		<mkdir dir="${artifacts.dir}"/> | 
 | 		<zip destfile="${package.output.file}"> | 
 | 			<zipfileset dir="${package.dir}"/> | 
 | 		</zip> | 
 | 	</target> | 
 |  | 
 | 	<target name="doc"> | 
 | 		<all-bundles target="doc" buildpathRef="doc.bundles"/> | 
 | 	</target> | 
 |  | 
 | 	<target name="doc-html"> | 
 | 		<all-bundles target="doc-html" buildpathRef="doc.bundles"/> | 
 | 	</target> | 
 |  | 
 | 	<!--P2 publishing properties--> | 
 |  | 
 | 	<target name="p2.publish" depends="package, fetch-unzipped-virgo-build-tools" | 
 | 			description="Publishes bundles, features and product"> | 
 | 		<copy todir="${basedir}/target/features" failonerror="false"> | 
 | 			<fileset dir="${basedir}/features"/> | 
 | 		</copy> | 
 |  | 
 | 		<xslt in="${basedir}/dependencies-ivy.xml" out="${basedir}/target/features/feature.xml" | 
 | 			  style="${basedir}/create-feature-xml.xsl"> | 
 | 			<param name="GW.VERSION" expression="${bundle.version}"/> | 
 | 		</xslt> | 
 |          | 
 |         <antcall target="p2.publish-bundles-features-alt"> | 
 |             <param name="repository" value="${p2.repository.dir}"/> | 
 |             <param name="bundles" value="${package.output.dir},${package.output.dir}/dep"/> | 
 |             <param name="features" value="${target.dir}/features"/> | 
 |         </antcall> | 
 |  | 
 | 		<!--sshexec host="build.eclipse.org"  | 
 | 				username="${eclipse.buildId}"  | 
 | 				keyfile="${key.file}"  | 
 | 				passphrase="${passphrase}" | 
 | 				trust="true" | 
 | 				command="mkdir -pv /opt/public/rt/gemini/web/update-site/${release.type}/${build.stamp}"/> | 
 |  | 
 | 		<scp todir="${eclipse.buildId}@build.eclipse.org:/opt/public/rt/gemini/web/update-site/${release.type}/${build.stamp}/"  | 
 | 				keyfile="${key.file}" | 
 | 				passphrase="${passphrase}"> | 
 | 			<fileset dir="${publishing.dir}"/> | 
 | 		</scp--> | 
 | 		<delete dir="${p2.publishing.dir}" excludes="p2agent.tar.gz" includeemptydirs="true" quiet="true"/> | 
 | 	</target> | 
 |  | 
 | </project> |