ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Uther <will+...@cs.cmu.edu>
Subject Re: conditionals and loops (was: Macro task (was: ...))
Date Fri, 25 Feb 2000 18:26:41 GMT
Hi,
  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 <http://www.beanshell.org/> instead?

  You could add a task:

  <BeanShell>
	print("Arbitrary BeanScript goes here!");
  </BeanShell>

  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
semantics...

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


Mime
View raw message