Added tokens for app control to the Apps_Defaults configuration file. Added AppsDefaults token checks to the cron java code and scripts. Updated Executor.start() to load system properties from properties files in a conf resources properties directory and also to load site specific properties from a conf resources properties site directory. Amend: Removed tabs in MainMethod.java. Updates from peer review. Removed old commented out code in ohd cron properties file and commented-out code in MainMethod.execute(). Change-Id: I44e74791dadc9af09c99244d8d099cea581863cc Former-commit-id:75e77feb58
[formerly68a3a98547
] [formerly75e77feb58
[formerly68a3a98547
] [formerly44e9238fa9
[formerly 96bb97c32f664e015a29ac5c3187e6b27160a872]]] Former-commit-id:44e9238fa9
Former-commit-id:7807eca270
[formerly253c19ae05
] Former-commit-id:6fae286ad2
131 lines
No EOL
4 KiB
XML
131 lines
No EOL
4 KiB
XML
<project name="deploy.esb" default="main">
|
|
<import file="${basedir}/deploy-common/deploy-web.xml" />
|
|
|
|
<target name="main">
|
|
<!-- on a developer machine, the following directories should
|
|
already exist. -->
|
|
<mkdir dir="${edex.root.directory}/lib" />
|
|
<mkdir dir="${edex.root.directory}/bin" />
|
|
<mkdir dir="${edex.root.directory}/conf" />
|
|
|
|
<antcall target="cleanup" />
|
|
|
|
<antcall target="deploy.esb" />
|
|
<if>
|
|
<equals arg1="${deploy.data}" arg2="true" />
|
|
<then>
|
|
<antcall target="deploy.esb-data" />
|
|
</then>
|
|
</if>
|
|
<if>
|
|
<equals arg1="${deploy.web}" arg2="true" />
|
|
<then>
|
|
<antcall target="deploy.esb-web" />
|
|
</then>
|
|
</if>
|
|
</target>
|
|
|
|
<target name="cleanup">
|
|
<!-- delete all files under ${esbDir}/lib/ -->
|
|
<echo message="Cleaning target directory: ${edex.root.directory}/lib/" />
|
|
<delete includeemptydirs="true">
|
|
<fileset dir="${edex.root.directory}/lib/">
|
|
<include name="**" />
|
|
<exclude name="native/**" />
|
|
</fileset>
|
|
</delete>
|
|
|
|
<!-- delete the shell scripts from ${esbDir}/bin/ -->
|
|
<echo message="Cleaning target directory: ${edex.root.directory}/bin/" />
|
|
<delete>
|
|
<fileset dir="${edex.root.directory}/bin/">
|
|
<include name="*.sh"/>
|
|
<include name="wrapper.conf" />
|
|
<include name="linux-x86-*/**" />
|
|
</fileset>
|
|
</delete>
|
|
|
|
<echo message="Cleaning target directory: ${edex.root.directory}/conf" />
|
|
<delete>
|
|
<fileset dir="${edex.root.directory}/conf">
|
|
<include name="**" />
|
|
<exclude name="**/site/**"/>
|
|
</fileset>
|
|
</delete>
|
|
</target>
|
|
|
|
<target name="deploy.esb">
|
|
<copy todir="${edex.root.directory}"
|
|
overwrite="${esb.overwrite}">
|
|
<fileset dir="${esb.directory}">
|
|
<exclude name="data/**" />
|
|
<exclude name="svcBackup/**" />
|
|
<exclude name="**/bin/setup.env" />
|
|
<exclude name="**/bin/linux-x86-32/**" />
|
|
<exclude name="**/bin/linux-x86-64/**" />
|
|
<exclude name="**/lib/lib_illusion/**" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- copy the correct wrapper based on architecture. -->
|
|
<antcall target="deploy.esb.wrapper-${architecture}" />
|
|
|
|
<!-- copy the correct 'libpython.so' based on architecture. -->
|
|
<mkdir dir="${edex.root.directory}/lib/lib_illusion" />
|
|
<copy todir="${edex.root.directory}/lib/lib_illusion">
|
|
<fileset dir="${esb.directory}/lib/lib_illusion/${architecture}">
|
|
<include name="*.so" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- set executable permissions - start.sh. -->
|
|
<chmod file="${edex.root.directory}/bin/start.sh" perm="ugo+rx" />
|
|
</target>
|
|
|
|
<target name="deploy.esb.wrapper-x86">
|
|
<copy todir="${edex.root.directory}">
|
|
<fileset dir="${esb.directory}">
|
|
<include name="**/bin/linux-x86-32/**" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- update permissions on the wrapper. -->
|
|
<chmod file="${edex.root.directory}/bin/linux-x86-32/wrapper"
|
|
perm="ugo+rx" />
|
|
</target>
|
|
|
|
<target name="deploy.esb.wrapper-x86_64">
|
|
<copy todir="${edex.root.directory}">
|
|
<fileset dir="${esb.directory}">
|
|
<include name="**/bin/linux-x86-64/**" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
<!-- update permissions on the wrapper. -->
|
|
<chmod file="${edex.root.directory}/bin/linux-x86-64/wrapper"
|
|
perm="ugo+rx" />
|
|
</target>
|
|
|
|
<target name="deploy.esb-data">
|
|
<copy todir="${edex.root.directory}"
|
|
overwrite="${esb.overwrite}">
|
|
<fileset dir="${esb.directory}" includes="data/**" />
|
|
</copy>
|
|
|
|
<!-- update directory permissions. -->
|
|
<chmod dir="${edex.root.directory}/data" perm="775"
|
|
includes="**/*" type="both" />
|
|
</target>
|
|
|
|
<target name="deploy.esb-web">
|
|
<deploy.war
|
|
web.project.dir="com.raytheon.edex.uengine"
|
|
war.name="uEngineWeb" />
|
|
<deploy.war
|
|
web.project.dir="gov.noaa.nws.ncep.edex.purgeutil"
|
|
war.name="purgeWeb" />
|
|
</target>
|
|
|
|
<taskdef resource="net/sf/antcontrib/antlib.xml"
|
|
classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" />
|
|
</project> |