ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Conditionnal tasks
Date Thu, 29 Jun 2000 16:24:31 GMT

We already have scripting with the Script optional task and the BSF (beauty
tool BTW) thanks to Sam Ruby.  With the Script task and the BSF, we have
access to all the scripting languages BSF supports, including Mozilla Rhino
v1.4 Release 3, NetRexx v1.148 upwards,. BML v2.4, JPython v1.1-beta3, Jacl
v1.1.1, LotusXSL v0.18.*, Microsoft ActiveScript languages VBScript,
JScript and ActiveState's PerlScript.

Unfortunately the Script task isn't really well documented yet.  I haven't
played around enough with it yet (and I'm not likely to have the time to)
to be comfortable coming up with good examples.  Sam, would you have time
to create a simple example and update the docs?  And include little
gotcha's like not being able to have periods in property names... :-)

Glenn McAllister
TID - Software Developer - VisualAge for Java
IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey

Please respond to

Subject:        Re: Conditionnal tasks

Stefan Bodewig wrote:
> >>>>> "SP" == Sebastien PIERRE <> writes:
>  SP> This resembles to XSLT stylesheets, for those who know.
> Hmm, maybe you could use a real XSLT stylesheet together with a basic
> XML file to create a new build.xml tailored to the current conditions
> using the new Style task? I'm only partly serious here.

I don't think XSLT would be useful : for exemple I want to apply a block
of tasks to each ".xml" file of my directory "xml". For this, I cannot
really use XSLT - and don't really figure out how it could be used.

Anyway, embedding a scripting language would be a really brilliant idea
: I'm convinced that modern app/tools should let the user avoid
technical problems by allowing scripting. For this, I propose the PNuts
scripting language, which is very similar to Java/JavaScript, but with
some very interesting features (packages, gui stuff).

It is a good topic to discuss...So what's your opinion ?

Sebastien Pierre.- \
R a t i o n a l   software | XML          \ meet me on -
. Rational Unified Process | technology    \ <>
. Vancouver, B.C,  -Canada | intern         \  - a r t  &  c o d e -

View raw message