Hi Daniel, i want to manipulate a property to lower that "comes in over the command line". I call "nant -D:customer=FladDemo"!
I have now this solution for lowering: <property name="customer" value="FladDevelopment"/> <if test="${customer != ''}"> <property name="customer" value="${string::to-lower(customer)}"/> </if> This works. But I am looking for a single task where i can do this in one line. Or how can i set a property with a default property and overwrite it in the same task with the value from the command line? Thanks in advance. Nguyen, Daniel schrieb: > Roland, > > Are you looking for existing function to convert a string to lower-case? If > yes, try the string::to-lower(name-of-string) function. > > Example: <property name="string.with.lower.case" > value="${string::to-lower(name-of-string)}" /> > > > Hope this help. > > > Daniel > > > > -----Original Message----- > From: Roland Müller [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 08, 2006 9:26 AM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] Manipulate property? > > Hello, > > i have property what is overwritten often by calling the nant buildfile. > I want to convert the string to lower. In what task can i do this? > > I have found out that i could do with > <regex pattern="" input="" />. > > Is there another, easier task for that i don't need regex and can use the > nant string functions? > > Thanks in adavance. > -- > Mit freundlichen Grüßen > > > Roland Müller > Fachinformatiker | Neue Medien > > =================================================================== > Flad & Flad Communication GmbH > Thomas-Flad-Weg 1 > D-90562 Heroldsberg > T +49 9126 275 346 > F +49 9126 275 275 > > [EMAIL PROTECTED] > www.flad.de > =================================================================== > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > > > ------------------------------------------------------------------------------------- > A.G. Edwards & Sons' outgoing and incoming e-mails are electronically > archived and subject to review and/or disclosure to someone other > than the recipient. > > ------------------------------------------------------------------------------------- > > -- Mit freundlichen Grüßen Roland Müller Fachinformatiker | Neue Medien =================================================================== Flad & Flad Communication GmbH Thomas-Flad-Weg 1 D-90562 Heroldsberg T +49 9126 275 346 F +49 9126 275 275 [EMAIL PROTECTED] www.flad.de =================================================================== ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users