> That's not the rules I was thinking of. Let me try this way:
>
> for (int i = 0; i < args.length; i++) {
> String arg = args[i];
> int posEq = arg.indexOf("=");
> if (posEq > 0) {
> value = arg.substring(posEq+1);
> name = arg.substring(0, posEq);
> definedProps.put(name, value);
> } else {
> targets.addElement(arg);
> }
> }
Ah! I'm clear now (nothing like code to clarify!). So, the following
would be legal and deterministic:
ant main foo=bar test baz=bop
Of course it's functionally equivalent to:
ant foo=bar baz=bop main test
But it doesn't matter. Hmmm. I could live with that. How do others feel?
.duncan