ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Why Ant recording does not work as expected?
Date Wed, 26 Nov 2003 16:14:09 GMT
All,

I am trying to use the record tasks in ant to produce log file. However, I
do not seem to see any activities in the log file besides the date. Can
anyone tell me what I did wrong?

Thanks

Barry

- <project name="es" default="all" basedir=".">
  <property environment="system" />
  <property name="BUILDROOT_DIR" value="${system.BUILDROOT_DIR}" />
  <property name="SERVER_SRCDIR" value="${BUILDROOT_DIR}/server" />
  <property name="IS_RELENG_BUILD" value="${system.IS_RELENG_BUILD}" />
  <property name="BUILDLOG_FILE" value="${system.BUILDLOG_FILE}" />
  <property name="REPORT_DIR" value="${system.REPORT_DIR}" />
- <target name="init">
  <tstamp />
  <echo message="TARGET: Init" />
  </target>
- <target name="startrecorder">
  <echo message="TARGET: startrecorder" />
  <echo message="startrecorder: REPORT_DIR is ${REPORT_DIR}" />
  <record name="${REPORT_DIR}/${name}-${DSTAMP}-log.txt" action="start"
loglevel="verbose" />
  </target>
- <target name="stoprecorder">
  <echo message="TARGET: stoprecorder" />
  <record name="${REPORT_DIR}/${name}-${DSTAMP}-log.txt" action="stop" />
  </target>
- <target name="buildnum" if="BUILDLOG_FILE">
  <echo message="TARGET: buildnum" />
  <echo message="buildnum: ${BUILDLOG_FILE}" />
  <buildnumber file="${BUILDLOG_FILE}" />
  </target>
- <target name="server">
  <echo message="TARGET: server" />
  <ant dir="./server" />
  </target>
- <target name="sendnotice">
  <echo message="TARGET: sendnotice" />
  <buildnumber file="${BUILDLOG_FILE}" />
- <mail subject="Build Results: ${build.number}" message="TEST">
  <from address=barry@xxx.com name="Nightly Build System" />
  <to address=barry@xxx.com />
  </mail>
  </target>
- <target name="all">
  <tstamp />
  <echo message="TARGET: all" />
  <antcall target="init" />
  <antcall target="server" />
  </target>
- <target name="nightly">
  <tstamp />
  <property name="name" value="nightly" />
  <antcall target="init" />
  <antcall target="startrecorder" />
  <echo message="TARGET: releng" />
  <echo message="releng: This is a Release Engineering build." />
  <antcall target="buildnum" />
  <antcall target="server" />
  <antcall target="sendnotice" />
  <antcall target="stoprecorder" />
  </target>
  </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message