ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean LeBlanc" <>
Subject Best way to force an "arg"
Date Thu, 25 Jul 2002 21:45:33 GMT
What I want to do is to force at least one "arg" to be present, so
I can define a branch of things to happen. What's the cleanest way
to do this?

I want something like:

ant (foo|bar) <other targets...>

but I want the build to exit if foo or bar do not exist on the command line. 
I've tried some
things (they didn't seem very elegant to me), but I ended up having 
troubles with the <fail> task. It says that unless is not a supported 
attribute? What gives with this?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message