ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: manipulating property strings
Date Wed, 02 Feb 2005 17:48:06 GMT
--- michael sorens <msorens@myrealbox.com> wrote:

> With the pointer to the <redirector>, I was able to
> rewrite the task to avoid a temp file. However, that
> introduced a different problem.

[SNIP]

Instead of <fail if="whatever" message="foo" /> you
can use (since Ant 1.6.2):
<fail message="foo">
  <condition>
    <and>
      <isset property="whatever" />
      <not>
        <equals arg1="${whatever}" arg2=""
                trim="true" />
      </not>
    </and>
  </condition>
</fail>

HTH,
Matt


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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


Mime
View raw message