ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Anchlia" <>
Subject If else
Date Tue, 14 Oct 2008 20:33:07 GMT
I am struggling with a very simple question. How do I test if a
variable is defined or not?

I tried:

          <matches string="${jboss.wily.jvmargs}" pattern="^[ \t]+" />


          <matches string="${jboss.wily.jvmargs}" pattern="" />


          <length string="${jboss.wily.jvmargs}" trim="true"
when="greater" length="0" />

Nothing seem to work. jboss.wily.jvmargs may or may not be there in
property file

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

View raw message