ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: AW: Pattern matching the value of a property
Date Tue, 16 Aug 2005 17:07:08 GMT
--- Matt Benson <gudnabrsam@yahoo.com> wrote:
[SNIP]
> <fail message="versionstring is wrong">
>   <condition>
>     <equals arg1="wrong" arg2="version.wrong" />
>   </condition>
> </fail>

That is, 
    <equals arg1="wrong" arg2="${version.wrong}" />
> 
> -Matt
> 
> > 
> > Just a quick shot ...
> > 
> > 
> > Jan
> > 
> >  
> > 
> > >-----Urspr√ľngliche Nachricht-----
> > >Von: Bailey, David
> > [mailto:David.Bailey@pearson.com] 
> > >Gesendet: Dienstag, 16. August 2005 18:28
> > >An: 'user@ant.apache.org'
> > >Betreff: Pattern matching the value of a property
> > >
> > >
> > >I have a wrapper which expects to receive a
> version
> > string 
> > >(\d{1}\.\d{1}\.\d{1-2}), and pass it to Ant as a 
> > >-DPROPERTY=VALUE pair.  I want to perform
> > validation on the 
> > >version string to insure that it actually matches
> > the 
> > >specified pattern.
> > >
> > >So far as I am aware, I can't do this validation
> in
> > the 
> > >wrapper (I'm bound by a Windows .bat file), but I
> > believe I 
> > >can do it in Ant.  However, all of the
> > documentation I've read 
> > >only concerns pattern matching in either file
> names
> > or file 
> > >contents.  Is there a task in the Ant canon,
> either
> > the 'core'
> > >tasks or the 'optional' tasks, which will do this
> > for me?
> > >
> > >For that matter, if anyone out there is a whiz at
> > .bat files 
> > >and can explain to me how to do the validation
> > there, I'll be 
> > >happy with that, too.
> > >
> > >Thanks,
> > >--dave
> > >
> >
>
>***************************************************************
> > >*************
> > >This email may contain confidential material. 
> > >If you were not an intended recipient,
> > >Please notify the sender and delete all copies. 
> > >We may monitor email to and from our network. 
> >
>
>***************************************************************
> > >*************
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> 
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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


Mime
View raw message