ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: Problem: ANT and continuous developers build process
Date Wed, 29 May 2002 21:20:52 GMT
--- Alexey Solofnenko <A.Solofnenko@mdl.com> wrote:
> Yes, I am using 1.5b1.

Okay, cool. So, I don't know for sure that this will do what you need,
since I don't really know your build process, but maybe it might at least
be a starting point to something that would do it for you:

  <target name="image-install" depends="compile" if="updated">
    <echo message="Running image-install..."/>
    <touch file=".image-install"/>
  </target>

  <target name="compile" depends="doCompile" if="newClasses">
    <touch file=".compile"/>
    <condition property="updated">
      <not>
        <uptodate targetfile=".image-install" srcfile=".compile"/>
      </not>
    </condition>
  </target>

  <target name="doCompile">
    <record name="compile.log" action="start" emacsmode="true"/>
      <javac .../>
    <record name="compile.log" action="stop"/>
    <loadfile property="newClasses" srcFile="compile.log">
      <filterchain>
        <linecontainsregexp>
          <regexp pattern="^Compiling"/>
        </linecontainsregexp>
      </filterchain>
    </loadfile>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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


Mime
View raw message