I have an Ant buildfile that imports the following at the top of the file:
<project name="..." ...>
<property file="build.properties"/>
...
In the project root I have two properties files: build.properties
and special-config.properties
. I am defining a target that needs to read the following property out of special-config.properties
:
always.ask=true
So the target needs to be something like this (just keep in mind that build.properties
was already set as the property file long before this target ever executes):
<target name="exec-special-logic">
<!-- Somehow read special-config.properties#always.ask and set it to a local variable... -->
</target>
But I am ansure of how to load this 2nd property file and make its properties (such as always.ask
) available to Ant. Thanks in advance.