ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: help - uptodate task clarification needed please.
Date Fri, 22 Feb 2002 02:42:42 GMT
--- Jeff Vincent <JVINCENT@novell.com> wrote:
> <target name="isUpToDate">
>          <uptodate property="buildLexer"
> targetfile="gensrc/Lexer.java">
>             <srcfiles dir="." includesfile="Lexer.g"/>
>         </uptodate>
> </target>

You do have them backwards -- you also have the wrong attribute
('includesfile' is used to point to a file that contains a list of
[possibly patterned] filenames).

Try:
  <target name="isUpToDate">
    <uptodate property="buildLexer" targetfile="Lexer.g">
      <srcfiles dir="gensrc" includes="Lexer.java"/>
    </uptodate>
    <echo message="buildLexer = ${buildLexer}"/>
  </target>

Diane

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



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.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