flaka

Ant loadfile override property

岁酱吖の 提交于 2019-12-31 00:46:29
问题 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. 回答1: The Ant plugin Flaka provides a let task, allowing to overwrite

How to include Ant flaka jar?

三世轮回 提交于 2019-12-08 09:12:33
问题 I am writing ant scripts and using Ant flaka jar to do some work. But flaka doesn't work as other external Ant lib. For example, if I need to include ant-contrib: <taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="../../lib/ant-contrib.jar"/> </classpath> </taskdef> Most importantly, I can specify where the jar is located. But for flaka, I don't see such thing. In the official website, they just tell user to download flaka jar to Ant installation folder. How

Ant loadfile override property

人盡茶涼 提交于 2019-12-01 19:52:44
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. The Ant plugin Flaka provides a let task, allowing to overwrite existing properties or variables like that = <project xmlns:fl="antlib:it.haefelinger.flaka"> <property name="my