Thanks for all the replies. finally i did it with a <propertyset> and its nested <propertyref prefix="foo"/> and used project.getReference("properties-starting-with-foo") in my script. Anyway it helps to post questions here, it always give me new ideas of implementations. Thanks guys!
-----Original Message----- From: Juergen Hermann [mailto:[EMAIL PROTECTED] Sent: Tue 7/5/2005 10:02 PM To: Ant Users List; Dick, Brian E. Subject: RE: wild card in project.getProperty() On Tue, 5 Jul 2005 08:52:11 -0400, Dick, Brian E. wrote: <echoproperties prefix= destfile=> in Ant optional tasks. perfect for a filter file, or loading them into another build script. >PropertySelector in ant-contrib >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 05, 2005 4:50 AM >To: user@ant.apache.org; user@ant.apache.org >Subject: wild card in project.getProperty() >Hello gentle people; >I was wondering if you can achieve the following using <scriptdef>: >I would like to retrieve all the properties prefixed with a given string >in my project to process them afterward. >i.e: get all properties starting with "zos.". >How acan you do this with Ant? >thanks for any clue. >Hava nice day. >hind. >This message is for the designated recipient only and may contain >privileged, proprietary, or otherwise private information. If you have >received it in error, please notify the sender immediately and delete >the original. Any other use of the email by you is prohibited. >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] Ciao, Jürgen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]