ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Knights" <>
Subject RE: script task: suggestion about the docs
Date Tue, 19 Jun 2001 23:37:53 GMT
Some places to find information about the script task:

It uses the BSF. The BSF pdf doc discusses the environment that scripts run in and how each
of the supported languages can make
calls to the environment.

Ant uses reflection to make calls to tasks. If you look at the doc section called "Developing
with Ant" you will see how this is
done and what the conventions are to use in your scripts.

As for an example try converting the hello world example to use perl. I did that when I was
messing around but have since deleted
that task or I'd include that as an example.

Also the ability to use a scripting task implies at least the ability to read c type code
(except for vbscript). Looking at the
script task's code to figure out what objects are available to call (using the conventions
discussed in the BSF docs) isn't that
difficult and it's always up-to-date.

This point can't be stressed enough -- Ant's code is, for everything I have looked at, clear
and readable. If you would look at the
code I think you would see this.


-----Original Message-----
From: Suu Quan []
Sent: Tuesday, June 19, 2001 12:51 PM
To: ANT user group
Subject: script task: suggestion about the docs

I was reading the script task in the user manual, and have the following questions/suggestions

1. In the example lines


I asked myself "How would I know a (task,target)'s list of methods (as above) to call". (how
would I know that execute() exists. No
I don't want to download the source code).

I scanned -for example- the Echo task, there is nothing that suggests the setMessage() method.

Would be really nice if the user manual, which is really a reference manual, also refers to
all the inherance hierarchy and
inherited methods and attributes.

2. Since I know neither "netrexx" nor "javascript", and more interested in Perl, would someone
add some in-line Perl script(s) that
make use of the ant task,targets ... Also, calls to a Perl file, passing ant tasks, targets
.... (I'm just saying that, I don't even
know if it makes sense).


Suu Quan

View raw message