Omaha #4330 Changed feature order so nwsauth is installed before gfe on the Windows build.

Former-commit-id: d21e1da9c0 [formerly 542a81d065c7ea5a991965967bf78faae253a029]
Former-commit-id: c975476243
This commit is contained in:
David Lovely 2015-03-25 09:06:45 -05:00
parent 120bd15d63
commit 84722234cf

View file

@ -1,134 +1,112 @@
<project default="main" basedir="."> <project default="main" basedir=".">
<!-- TODO: Verify These Properties References An Actual Directory. --> <!-- TODO: Verify These Properties References An Actual Directory. -->
<property name="eclipse.dir" <property name="eclipse.dir" value="/opt/uframe-eclipse" />
value="/opt/uframe-eclipse" /> <property name="build.version" value="1.0.0" />
<property name="build.version" <property name="build.os" value="linux" />
value="1.0.0" /> <property name="build.ws" value="gtk" />
<property name="build.os" <property name="build.arch" value="x86" />
value="linux" />
<property name="build.ws"
value="gtk" />
<property name="build.arch"
value="x86" />
<property name="workspace.dir" value="${basedir}/../" /> <property name="workspace.dir" value="${basedir}/../" />
<property name="pde.build.script" <property name="pde.build.script" value="org.eclipse.pde.build_3.8.2.v20121114-140810/scripts/build.xml" />
value="org.eclipse.pde.build_3.8.2.v20121114-140810/scripts/build.xml" /> <property name="eclipse.launcher.jar" value="org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar" />
<property name="eclipse.launcher.jar"
value="org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar" />
<!-- Verify That We Have Access To A Copy Of Eclipse --> <!-- Verify That We Have Access To A Copy Of Eclipse -->
<target name="verify"> <target name="verify">
</target> </target>
<!-- Creates The Temporary Directories That We Will Need To Build <!-- Creates The Temporary Directories That We Will Need To Build
The P2 Repositories. --> The P2 Repositories. -->
<target name="init" depends="verify"> <target name="init" depends="verify">
<!-- We Will Use A Temporary p2 Directory And Leave The <!-- We Will Use A Temporary p2 Directory And Leave The
cave/tmp Directory For The Original PDE Build. --> cave/tmp Directory For The Original PDE Build. -->
<mkdir dir="${basedir}/cave/p2" /> <mkdir dir="${basedir}/cave/p2" />
<!-- Copy The P2 Build build.properties File. --> <!-- Copy The P2 Build build.properties File. -->
<copy tofile="${basedir}/cave/p2/build.properties" <copy tofile="${basedir}/cave/p2/build.properties" file="${basedir}/build.properties.p2" verbose="true" />
file="${basedir}/build.properties.p2" verbose="true" />
<!-- We Will Copy The Plugins Here Eventually. --> <!-- We Will Copy The Plugins Here Eventually. -->
<mkdir dir="${basedir}/cave/p2/plugins" /> <mkdir dir="${basedir}/cave/p2/plugins" />
<!-- We Will Copy The Features Here Eventually. --> <!-- We Will Copy The Features Here Eventually. -->
<mkdir dir="${basedir}/cave/p2/features" /> <mkdir dir="${basedir}/cave/p2/features" />
<mkdir dir="${basedir}/cave/p2/repository" /> <mkdir dir="${basedir}/cave/p2/repository" />
<mkdir dir="${basedir}/cave/p2/dist" /> <mkdir dir="${basedir}/cave/p2/dist" />
<!-- BEGIN: Copy The Plugins --> <!-- BEGIN: Copy The Plugins -->
<echo message="PLUGINS: com.*/**" /> <echo message="PLUGINS: com.*/**" />
<copy todir="${basedir}/cave/p2/plugins"> <copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" <fileset dir="${workspace.dir}" includes="com.*/**" />
includes="com.*/**" />
</copy>
<echo message="PLUGINS: ucar.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="ucar.*/**" />
</copy>
<echo message="PLUGINS: *.feature*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="*.feature*/**" />
</copy>
<echo message="PLUGINS: ncsa.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="ncsa.*/**" />
</copy>
<echo message="PLUGINS: org.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="org.*/**" />
</copy>
<echo message="PLUGINS: net.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="net.*/**" />
</copy>
<echo message="PLUGINS: ohd*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="ohd*/**" />
</copy>
<echo message="PLUGINS: javax.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="javax.*/**" />
</copy>
<echo message="PLUGINS: gov.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="gov.*/**" />
</copy>
<echo message="PLUGINS: edu.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="edu.*/**" />
</copy>
<echo message="PLUGINS: de.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="de.*/**" />
</copy>
<echo message="PLUGINS: it.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="it.*/**" />
</copy>
<echo message="PLUGINS: v*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}"
includes="v*/**" />
</copy> </copy>
<echo message="PLUGINS: ch.*/**" /> <echo message="PLUGINS: ucar.*/**" />
<copy todir="${basedir}/cave/p2/plugins"> <copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" <fileset dir="${workspace.dir}" includes="ucar.*/**" />
includes="ch.*/**" /> </copy>
</copy>
<echo message="PLUGINS: *.feature*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="*.feature*/**" />
</copy>
<echo message="PLUGINS: ncsa.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="ncsa.*/**" />
</copy>
<echo message="PLUGINS: org.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="org.*/**" />
</copy>
<echo message="PLUGINS: net.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="net.*/**" />
</copy>
<echo message="PLUGINS: ohd*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="ohd*/**" />
</copy>
<echo message="PLUGINS: javax.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="javax.*/**" />
</copy>
<echo message="PLUGINS: gov.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="gov.*/**" />
</copy>
<echo message="PLUGINS: edu.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="edu.*/**" />
</copy>
<echo message="PLUGINS: de.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="de.*/**" />
</copy>
<echo message="PLUGINS: it.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="it.*/**" />
</copy>
<echo message="PLUGINS: v*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="v*/**" />
</copy>
<echo message="PLUGINS: ch.*/**" />
<copy todir="${basedir}/cave/p2/plugins">
<fileset dir="${workspace.dir}" includes="ch.*/**" />
</copy>
<!-- END: Copy The Plugins --> <!-- END: Copy The Plugins -->
</target> </target>
<!-- Cleans Up Any Temporary Directories --> <!-- Cleans Up Any Temporary Directories -->
<target name="clean"> <target name="clean">
<if> <if>
@ -140,296 +118,237 @@
</then> </then>
</if> </if>
</target> </target>
<tstamp> <tstamp>
<format property="build.timestamp" <format property="build.timestamp" pattern="yyyyMMddHHmm" />
pattern="yyyyMMddHHmm" />
</tstamp> </tstamp>
<target name="p2.build" depends="clean, init"> <target name="p2.build" depends="clean, init">
<!-- We Need To Build The p2 Repos In A Certain Order Due To <!-- We Need To Build The p2 Repos In A Certain Order Due To
Dependencies. --> Dependencies. -->
<!-- copy the com.raytheon.uf.viz.application.feature feature. <!-- copy the com.raytheon.uf.viz.application.feature feature.
Used by the com.raytheon.viz.feature.awips feature. --> Used by the com.raytheon.viz.feature.awips feature. -->
<copy todir="${basedir}/cave/p2/features" verbose="true"> <copy todir="${basedir}/cave/p2/features" verbose="true">
<fileset dir="${workspace.dir}" <fileset dir="${workspace.dir}" includes="com.raytheon.uf.viz.application.feature/**" />
includes="com.raytheon.uf.viz.application.feature/**" /> </copy>
</copy>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.feature.awips" />
value="com.raytheon.viz.feature.awips" /> <param name="omit" value="true" />
<param name="omit"
value="true" />
</antcall> </antcall>
<!-- <!--
we will still build this for the MSFT Windows CAVE. we will still build this for the MSFT Windows CAVE.
--> -->
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.common.base.feature" />
value="com.raytheon.uf.common.base.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.base.feature" />
value="com.raytheon.uf.viz.base.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.cots.feature" />
value="com.raytheon.uf.viz.cots.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.common.core.feature" />
value="com.raytheon.uf.viz.common.core.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.localization.perspective.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.core.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.localization.perspective.feature" />
value="com.raytheon.uf.viz.core.maps.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.core.feature" />
value="com.raytheon.uf.viz.sounding.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.core.maps.feature" />
value="com.raytheon.uf.viz.dataplugin.obs.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.sounding.feature" />
value="com.raytheon.uf.viz.dataplugins.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.dataplugin.obs.feature" />
value="com.raytheon.uf.viz.d2d.core.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.dataplugins.feature" />
value="com.raytheon.viz.radar.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.d2d.core.feature" />
value="com.raytheon.viz.text.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.radar.feature" />
value="com.raytheon.viz.warngen.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.text.feature" />
value="com.raytheon.viz.grib.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.kml.export.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.viz.gfe.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.warngen.feature" />
value="com.raytheon.uf.viz.displays.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.grib.feature" />
value="com.raytheon.viz.satellite.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.kml.export.feature" />
value="com.raytheon.uf.viz.ncep.core.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.nwsauth.feature" />
value="com.raytheon.uf.viz.aviation.advisory.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.gfe.feature" />
value="com.raytheon.uf.viz.ncep.dataplugins.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.displays.feature" />
value="com.raytheon.viz.hydro.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.satellite.feature" />
value="com.raytheon.uf.viz.d2d.xy.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.ncep.core.feature" />
value="com.raytheon.uf.viz.ncep.displays.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.aviation.advisory.feature" />
value="com.raytheon.uf.viz.ncep.nsharp.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.ncep.dataplugins.feature" />
value="com.raytheon.uf.viz.d2d.nsharp.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.viz.hydro.feature" />
value="com.raytheon.uf.viz.archive.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.d2d.xy.feature" />
value="com.raytheon.uf.viz.ncep.perspective.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.nwsauth.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.thinclient.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.ncep.displays.feature" />
value="com.raytheon.uf.viz.useradmin.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.registry.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.datadelivery.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.npp.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.d2d.skewt.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.ncep.nsharp.feature" />
value="com.raytheon.viz.volumebrowser.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.acarssounding.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.viz.avnfps.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.dat.feature" />
</antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.d2d.nsharp.feature" />
value="com.raytheon.uf.viz.d2d.gfe.feature" />
</antcall> </antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.collaboration.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature"
value="com.raytheon.uf.viz.gisdatastore.feature" />
</antcall>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" <param name="feature" value="com.raytheon.uf.viz.archive.feature" />
value="com.raytheon.uf.viz.d2d.ui.awips.feature" /> </antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.ncep.perspective.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.thinclient.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.useradmin.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.registry.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.datadelivery.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.npp.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.d2d.skewt.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.viz.volumebrowser.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.acarssounding.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.viz.avnfps.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.dat.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.d2d.gfe.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.collaboration.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.gisdatastore.feature" />
</antcall>
<antcall target="p2.build.repo">
<param name="feature" value="com.raytheon.uf.viz.d2d.ui.awips.feature" />
</antcall> </antcall>
<antcall target="cleanup.features" /> <antcall target="cleanup.features" />
</target> </target>
<target name="wa-build" depends="p2.build" description="Builds work assignment specific features after the main build"> <target name="wa-build" depends="p2.build" description="Builds work assignment specific features after the main build">
<for param="wa.feature.list.file"> <for param="wa.feature.list.file">
<fileset dir="${basedir}" includes="*-wa-build.properties" /> <fileset dir="${basedir}" includes="*-wa-build.properties" />
<sequential> <sequential>
<var name="wa.features" unset="true" /> <var name="wa.features" unset="true" />
<property file="@{wa.feature.list.file}" /> <property file="@{wa.feature.list.file}" />
<for list="${wa.features}" param="wa.feature"> <for list="${wa.features}" param="wa.feature">
<sequential> <sequential>
<antcall target="p2.build.repo"> <antcall target="p2.build.repo">
<param name="feature" value="@{wa.feature}" /> <param name="feature" value="@{wa.feature}" />
</antcall> </antcall>
</sequential> </sequential>
</for> </for>
</sequential> </sequential>
</for> </for>
</target> </target>
<target name="wa-cleanup" depends="wa-build" description="Removes references to WA-specific features that should not be built as an RPM."> <target name="wa-cleanup" depends="wa-build" description="Removes references to WA-specific features that should not be built as an RPM.">
<for param="wa.feature.list.file"> <for param="wa.feature.list.file">
<fileset dir="${basedir}" includes="*-wa-build.properties" /> <fileset dir="${basedir}" includes="*-wa-build.properties" />
<sequential> <sequential>
<var name="wa.features.ignore" unset="true" /> <var name="wa.features.ignore" unset="true" />
<property file="@{wa.feature.list.file}" /> <property file="@{wa.feature.list.file}" />
<for list="${wa.features.ignore}" param="wa.feature"> <for list="${wa.features.ignore}" param="wa.feature">
<sequential> <sequential>
<if> <if>
<available file="${basedir}/cave/p2/features/@{wa.feature}" type="dir" /> <available file="${basedir}/cave/p2/features/@{wa.feature}" type="dir" />
<then> <then>
<!-- Remove the feature directory. --> <!-- Remove the feature directory. -->
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset dir="${basedir}/cave/p2/features/@{wa.feature}" /> <fileset dir="${basedir}/cave/p2/features/@{wa.feature}" />
</delete> </delete>
<!-- Remove references to the feature from features.txt --> <!-- Remove references to the feature from features.txt -->
<exec executable="/bin/sed" output="${basedir}/cave/p2/dist/features.txt.tmp"> <exec executable="/bin/sed" output="${basedir}/cave/p2/dist/features.txt.tmp">
<arg value="/@{wa.feature}/d" /> <arg value="/@{wa.feature}/d" />
<arg value="${basedir}/cave/p2/dist/features.txt" /> <arg value="${basedir}/cave/p2/dist/features.txt" />
</exec> </exec>
<move file="${basedir}/cave/p2/dist/features.txt.tmp" <move file="${basedir}/cave/p2/dist/features.txt.tmp" tofile="${basedir}/cave/p2/dist/features.txt" />
tofile="${basedir}/cave/p2/dist/features.txt" /> </then>
</then> </if>
</if> </sequential>
</sequential> </for>
</for> </sequential>
</sequential> </for>
</for>
</target> </target>
<target name="main" depends="clean, p2.build, wa-build, wa-cleanup" /> <target name="main" depends="clean, p2.build, wa-build, wa-cleanup" />
<target name="p2.build.repo"> <target name="p2.build.repo">
<!-- Copy The Feature --> <!-- Copy The Feature -->
<copy todir="${basedir}/cave/p2/features"> <copy todir="${basedir}/cave/p2/features">
<fileset dir="${workspace.dir}" <fileset dir="${workspace.dir}" includes="${feature}/**" />
includes="${feature}/**" />
</copy> </copy>
<!-- Update The Feature --> <!-- Update The Feature -->
<property name="process.feature.tool" <property name="process.feature.tool" value="${workspace.dir}/build/tools/ProcessFeature.jar" />
value="${workspace.dir}/build/tools/ProcessFeature.jar" /> <java jar="${process.feature.tool}" fork="true" failonerror="false" resultproperty="feature.tool.exitcode">
<java
jar="${process.feature.tool}"
fork="true"
failonerror="false"
resultproperty="feature.tool.exitcode">
<arg value="-u" /> <arg value="-u" />
<arg value="${basedir}/cave/p2/features/${feature}" /> <arg value="${basedir}/cave/p2/features/${feature}" />
<arg value="${build.version}" /> <arg value="${build.version}" />
</java> </java>
<if> <if>
<equals arg1="${feature.tool.exitcode}" <equals arg1="${feature.tool.exitcode}" arg2="255" />
arg2="255" />
<then> <then>
<fail message="${process.feature.tool} FAILED." /> <fail message="${process.feature.tool} FAILED." />
</then> </then>
</if> </if>
<!-- Build The Repository --> <!-- Build The Repository -->
<java <java classname="org.eclipse.core.launcher.Main" fork="true" failonerror="true">
classname="org.eclipse.core.launcher.Main"
fork="true"
failonerror="true">
<arg value="-application" /> <arg value="-application" />
<arg value="org.eclipse.ant.core.antRunner" /> <arg value="org.eclipse.ant.core.antRunner" />
<arg value="-buildfile" /> <arg value="-buildfile" />
@ -440,30 +359,25 @@
<arg value="-DtopLevelElementId=${feature}" /> <arg value="-DtopLevelElementId=${feature}" />
<arg value="-DforceContextQualifier=${build.timestamp}" /> <arg value="-DforceContextQualifier=${build.timestamp}" />
<arg value="-Dconfigs=${build.os},${build.ws},${build.arch}" /> <arg value="-Dconfigs=${build.os},${build.ws},${build.arch}" />
<classpath> <classpath>
<pathelement <pathelement location="${eclipse.dir}/plugins/${eclipse.launcher.jar}" />
location="${eclipse.dir}/plugins/${eclipse.launcher.jar}" />
</classpath> </classpath>
</java> </java>
<!-- Record that the feature has been built (for now) --> <!-- Record that the feature has been built (for now) -->
<if> <if>
<not> <not>
<isset property="omit" /> <isset property="omit" />
</not> </not>
<then> <then>
<echo message="${feature}${line.separator}" <echo message="${feature}${line.separator}" file="${basedir}/cave/p2/dist/features.txt" append="true" />
file="${basedir}/cave/p2/dist/features.txt"
append="true" />
</then> </then>
</if> </if>
<!-- Package The Repository --> <!-- Package The Repository -->
<zip <zip destfile="${basedir}/cave/p2/dist/${feature}-repo-${build.os}.${build.arch}.zip" basedir="${basedir}/cave/p2/repository" />
destfile="${basedir}/cave/p2/dist/${feature}-repo-${build.os}.${build.arch}.zip"
basedir="${basedir}/cave/p2/repository" />
<!-- Cleanup The Current Build --> <!-- Cleanup The Current Build -->
<if> <if>
<available file="${basedir}/cave/p2/I.CAVE" type="dir" /> <available file="${basedir}/cave/p2/I.CAVE" type="dir" />
@ -483,77 +397,56 @@
</if> </if>
<mkdir dir="${basedir}/cave/p2/repository" /> <mkdir dir="${basedir}/cave/p2/repository" />
</target> </target>
<target name="cleanup.features"> <target name="cleanup.features">
<!-- Remove 'com.raytheon.viz.feature.awips' --> <!-- Remove 'com.raytheon.viz.feature.awips' -->
<if> <if>
<available <available file="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips" type="dir" />
file="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips"
type="dir" />
<then> <then>
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset <fileset dir="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips" />
dir="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips"
/>
</delete> </delete>
</then> </then>
</if> </if>
<!-- Remove 'com.raytheon.uf.viz.feature.alertviz' --> <!-- Remove 'com.raytheon.uf.viz.feature.alertviz' -->
<if> <if>
<available <available file="${basedir}/cave/p2/features/com.raytheon.uf.viz.feature.alertviz" type="dir" />
file="${basedir}/cave/p2/features/com.raytheon.uf.viz.feature.alertviz"
type="dir" />
<then> <then>
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset <fileset dir="${basedir}/cave/p2/features/com.raytheon.uf.viz.feature.alertviz" />
dir="${basedir}/cave/p2/features/com.raytheon.uf.viz.feature.alertviz"
/>
</delete> </delete>
</then> </then>
</if> </if>
<!-- Remove 'com.raytheon.viz.feature.awips.developer' --> <!-- Remove 'com.raytheon.viz.feature.awips.developer' -->
<if> <if>
<available <available file="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips.developer" type="dir" />
file="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips.developer"
type="dir" />
<then> <then>
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset <fileset dir="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips.developer" />
dir="${basedir}/cave/p2/features/com.raytheon.viz.feature.awips.developer"
/>
</delete> </delete>
</then> </then>
</if> </if>
<!-- Remove 'com.raytheon.uf.common.base.feature' --> <!-- Remove 'com.raytheon.uf.common.base.feature' -->
<if> <if>
<available <available file="${basedir}/cave/p2/features/com.raytheon.uf.common.base.feature" type="dir" />
file="${basedir}/cave/p2/features/com.raytheon.uf.common.base.feature"
type="dir" />
<then> <then>
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset <fileset dir="${basedir}/cave/p2/features/com.raytheon.uf.common.base.feature" />
dir="${basedir}/cave/p2/features/com.raytheon.uf.common.base.feature" </delete>
/> </then>
</if>
<!-- Remove 'com.raytheon.uf.viz.collaboration.product.feature' -->
<if>
<available file="${basedir}/cave/p2/features/com.raytheon.uf.viz.collaboration.product.feature" type="dir" />
<then>
<delete includeemptydirs="true">
<fileset dir="${basedir}/cave/p2/features/com.raytheon.uf.viz.collaboration.product.feature" />
</delete> </delete>
</then> </then>
</if> </if>
<!-- Remove 'com.raytheon.uf.viz.collaboration.product.feature' -->
<if>
<available
file="${basedir}/cave/p2/features/com.raytheon.uf.viz.collaboration.product.feature"
type="dir" />
<then>
<delete includeemptydirs="true">
<fileset
dir="${basedir}/cave/p2/features/com.raytheon.uf.viz.collaboration.product.feature"
/>
</delete>
</then>
</if>
</target> </target>
<taskdef resource="net/sf/antcontrib/antlib.xml" <taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" />
classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" /> </project>
</project>