>> = Scott Sauyet <[EMAIL PROTECTED]>
> = Benjamin Burgess <[EMAIL PROTECTED]>

>> Can anyone suggest a way of combining the information from one file
>> with the results of an <echoproperties> that doesn't involve a
>> temporary file.  I'm doing it now using one, but that grates on me,
>> and I feel there must be a simple way of doing so.

> Using Ant-Contrib (not recommended unless necessary) you can do it
> like this:
>
> <propertyselector property="app.properties.list"
>     delimiter=","
>     match="app\.(.*)"
>     select="\1"/>
>
> <for list="${app.properties.list}" param="prop">
>     <sequential>
>         <propertycopy property="@{prop}.value" from="[EMAIL PROTECTED]"/>
>         <propertyfile file="${class.dir}/app.properties">
>             <entry key="@{prop}" value="[EMAIL PROTECTED]"/>
>         </propertyfile>
>      </sequential>
> </for>

Thanks. I haven't ever used Ant-Contrib. This makes sense, but since this is just an itch I'd like to scratch, I think I'll stick with your "not recommended unless necessary."

If there are any suggestions that don't use Ant-Contrib, I'd love to hear them.

Thanks again,

  -- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to