ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Uther <>
Subject Re: conditionals and loops (was: Macro task (was: ...))
Date Fri, 25 Feb 2000 18:26:41 GMT
  If people are strongly against ANT gaining <switch> and <ForEach>, there
is another solution, similar to that used for make.

  Make allows arbitrary shell-scripts to be embedded in rules.  Now,
shellscript is not cross-platform.  Bad.  So, how about using something
like BeanShell <> instead?

  You could add a task:

	print("Arbitrary BeanScript goes here!");

  This requires a change to the way ANT parses Tasks.  It needs the
addition of an addText(String txt) method to handle the setting of text.
It would also be nice to be able to embed tasks (yeah, or other tags...) in
the beanscript - that shouldn't be too hard.

  Thoughts, comments?

\x/ill         :-}

P.S.  Again, this would work better with more standard execution

P.P.S.  This proposal is not mutally exclusive with the <ForEach> proposal
- you could have both.

View raw message