ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Duncan Davidson <james.david...@eng.sun.com>
Subject Re: Ant Principles
Date Wed, 19 Apr 2000 08:08:07 GMT


> 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

Mime
View raw message