Ant: How do I set a properties from a comma-separated list passed in on command line?

Viewed 11862

I'm using Ant 1.8.1. If I passed in an argument on the command line ...

-DenableProperties=abc,def,ghi,jkl

How do I set individual properties (to true/false) in my Ant script?

<property name="abc" value="???" />
<property name="def" value="???" />

Note that in the above example, I'd want Ant to have access to a property "${abc}" that is set to true, whereas if it tried to access the property "${mno}" that property would be false, or at least some value other than true.

Thanks, - Dave

2 Answers
Related