Jay Walters <[EMAIL PROTECTED]> wrote:

> It appears to me that ANT supports only properties which are set or
> unset.

This is correct.

> What is the recommended way to handle something like a property with
> 3 values where the build process needs to run different sets of
> tasks, or targets, depending on the value of the property?

If property X can have values A, B, C

<property name="test.${X}" value="foo" />

will make

<target if="test.A">

the same as if="X holds value A".

The cleanest solution would be some type of preprocessor though.

Stefan

Reply via email to