Ant loadfile override property

Posted by lucks on Stack Overflow See other posts from Stack Overflow or by lucks
Published on 2011-03-18T22:43:57Z Indexed on 2011/03/19 0:10 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

Hi,

I'm trying to use the Ant task <loadfile> in a loop to parse the contents of a file. I have something like

<loadfile srcFile="@{some.input}" property="my.property">

Since Ant properties are immutable, this doesn't work for me. I need 'my.property' to update on every iteration. Is there a way to achieve this? I know Ant-contrib has a <var> task but I'm not sure how to use <loadfile> with it.

Any recommendations?

Thanks.

© Stack Overflow or respective owner

Related posts about variables

Related posts about ant