blob: 7d0c3d780a8ab0984e6bd67e517c1d08db2becfd [file] [log] [blame]
<project basedir=".">
<dirname file="${ant.file}" property="monitor.dir" />
<path id="monitor.classpath">
<fileset dir="${monitor.dir}/ant-tasks">
<include name="*.jar" />
</fileset>
</path>
<taskdef name="wtp-monitor" classname="org.eclipse.wtp.releng.monitor.BuildMonitor" classpathref="monitor.classpath" />
<target name="init">
<condition property="doTrial">
<equals arg1="${build.trial}" arg2="true" />
</condition>
</target>
<target name="notifyBuild" depends="init">
<dirname file="${ant.file}" property="monitor.dir" />
<antcall target="notify">
<param name="monitor.template.file" value="${monitor.dir}/templateFiles/monitor-compile.php.template" />
</antcall>
</target>
<target name="notifyTest">
<antcall target="notify">
<param name="monitor.template.file" value="${monitor.dir}/templateFiles/monitor-tests.php.template" />
</antcall>
</target>
<!-- =================================
target: notify
================================= -->
<target name="notify" depends="init" description="wtp monitor" unless="doTrial">
<wtp-monitor
hostname="127.0.0.1"
sender="webtools.builder@eclipse.org"
recipients="wtp-releng@eclipse.org"
prefix="[${build.distribution}-${buildBranch}-build]"
buildLabel="${buildLabel}"
buildLink="http://download.eclipse.org/webtools/committers/drops/${buildLabel}"
dropTokenList="%wst%,%jst%,%wstsdk%,%jstsdk%"
xmlDirectoryName="${buildDirectory}/${buildLabel}/testResults/xml"
testResultsTemplateFileName="${monitor.template.file}"
compileLogsDirectoryName="${buildDirectory}/${buildLabel}/compilelogs"
testManifestFileName="${testManifest}" />
</target>
</project>