ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DanVegas <>
Subject Conditional help
Date Sat, 06 Feb 2010 09:46:30 GMT

Hi all,

I'm new to using Ant and need a little help with an Task I am working on?

In one part of it I need to check if a string does notexist in a certain
file and if it doesn't then I want to add it.
I looked through the manual/web and couldn't find any way of doing it.

Pseudo code:
      <contained in file file="${somefile}" value="${somestring}" />
             <replace file="${src}/index.html">
                 <replacefilter token="@mytoken@"

Any help greatly appreciated
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message