You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sean LeBlanc <se...@nutros.com> on 2002/07/25 22:44:23 UTC

Best way to force an "arg"?

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>