2017-04-21 18:33:55 -06:00
|
|
|
<project name="Build EDEX" default="main">
|
|
|
|
<property name="uframe.eclipse"
|
|
|
|
value="/awips2/eclipse" />
|
|
|
|
<property name="build.version"
|
|
|
|
value="1.0.0" />
|
|
|
|
<property name="build.os"
|
|
|
|
value="linux" />
|
|
|
|
<property name="build.ws"
|
|
|
|
value="gtk" />
|
|
|
|
<property name="build.arch"
|
2017-04-22 20:31:30 -06:00
|
|
|
value="x86" />
|
2017-04-21 18:33:55 -06:00
|
|
|
<property name="lightning"
|
|
|
|
value="false" />
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<exec executable="/usr/bin/find"
|
|
|
|
outputproperty="eclipse.launcher.jar">
|
|
|
|
<arg value="${uframe.eclipse}/plugins" />
|
|
|
|
<arg value="-name" />
|
|
|
|
<arg value="org.eclipse.equinox.launcher_*.jar" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec executable="/usr/bin/find"
|
|
|
|
outputproperty="pde.dir">
|
|
|
|
<arg value="${uframe.eclipse}/plugins" />
|
|
|
|
<arg value="-name" />
|
|
|
|
<arg value="org.eclipse.pde.build_*" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="main-build" depends="clean, init">
|
2018-07-05 11:49:57 -06:00
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
For the Unidata build, most edex features have been combined
|
|
|
|
into com.raytheon.uf.edex.dataplugins.feature
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<antcall target="build">
|
2017-04-21 18:33:55 -06:00
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.common.base.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.base.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.cots.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.common.core.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.core.feature" />
|
|
|
|
</antcall>
|
2018-04-11 09:17:26 -06:00
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-07-20 10:19:41 -06:00
|
|
|
value="com.raytheon.uf.edex.dataplugins.feature" />
|
2018-04-11 09:17:26 -06:00
|
|
|
</antcall>
|
2018-07-24 15:43:30 -06:00
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-08-08 10:46:27 -06:00
|
|
|
value="com.raytheon.uf.edex.ogc.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.datadelivery.feature" />
|
2018-07-24 15:43:30 -06:00
|
|
|
</antcall>
|
2018-07-20 10:19:41 -06:00
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
|
|
|
value="com.raytheon.uf.edex.dat.feature" />
|
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-08-08 10:46:27 -06:00
|
|
|
value="gov.noaa.nws.ncep.uf.edex.swpc.feature" />
|
2018-07-20 10:19:41 -06:00
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-08-08 10:46:27 -06:00
|
|
|
value="com.raytheon.uf.edex.gfe.feature" />
|
2018-07-20 10:19:41 -06:00
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-08-08 10:46:27 -06:00
|
|
|
value="com.raytheon.uf.edex.hazards.feature" />
|
2018-07-20 10:19:41 -06:00
|
|
|
</antcall>
|
|
|
|
<antcall target="build">
|
|
|
|
<param name="feature"
|
2018-08-08 10:46:27 -06:00
|
|
|
value="edu.ucar.unidata.uf.edex.unidata.feature" />
|
2018-07-20 10:19:41 -06:00
|
|
|
</antcall>
|
2017-04-21 18:33:55 -06:00
|
|
|
</target>
|
|
|
|
|
2018-07-05 11:49:57 -06:00
|
|
|
<target name="main" depends="clean, init, main-build" />
|
2017-04-21 18:33:55 -06:00
|
|
|
|
|
|
|
<target name="build" depends="init">
|
|
|
|
<!-- Execute the eclipse pde build script. -->
|
|
|
|
<echo message="feature=${feature}" />
|
|
|
|
<java
|
|
|
|
classname="org.eclipse.core.launcher.Main"
|
|
|
|
fork="true"
|
|
|
|
failonerror="true">
|
|
|
|
|
|
|
|
<arg value="-application" />
|
|
|
|
<arg value="org.eclipse.ant.core.antRunner" />
|
|
|
|
<arg value="-buildfile" />
|
|
|
|
<arg value="${pde.dir}/scripts/build.xml" />
|
|
|
|
<arg value="-DbaseLocation=${uframe.eclipse}" />
|
|
|
|
<arg value="-Dbuilder=${basedir}/edex" />
|
|
|
|
<arg value="-DbuildDirectory=${basedir}/edex/tmp" />
|
|
|
|
<arg value="-DtopLevelElementId=${feature}" />
|
|
|
|
<arg value="-Dbase=${basedir}/edex" />
|
|
|
|
<arg value="-Dconfigs=${build.os},${build.ws},${build.arch}" />
|
|
|
|
|
|
|
|
<classpath>
|
|
|
|
<pathelement
|
|
|
|
location="${eclipse.launcher.jar}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<if>
|
|
|
|
<available file="${basedir}/edex/includes"
|
|
|
|
type="dir" />
|
|
|
|
<then>
|
|
|
|
<delete includeemptydirs="true">
|
|
|
|
<fileset dir="${basedir}/edex"
|
|
|
|
includes ="includes/**" />
|
|
|
|
</delete>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if>
|
|
|
|
<available file="${basedir}/edex/tmp"
|
|
|
|
type="dir" />
|
|
|
|
<then>
|
|
|
|
<delete includeemptydirs="true">
|
|
|
|
<fileset dir="${basedir}/edex"
|
|
|
|
includes ="tmp/**" />
|
|
|
|
</delete>
|
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
</target>
|
2018-06-20 17:39:08 -06:00
|
|
|
|
2018-07-05 11:49:57 -06:00
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml" />
|
2017-04-21 18:33:55 -06:00
|
|
|
|
|
|
|
</project>
|