ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: [PATCH] New <case> task
Date Wed, 11 Oct 2000 19:20:56 GMT
--- Jose  Alberto Fernandez <JFernandez@viquity.com> wrote:
> Could you show us how to write a generic script that does what the
> <case> task is doing? The input is a property and a list of value
> property pairs.

Yes, please. As I've said, my javascript was awhile back, and even then, I
only learned as much as I needed to to do what needed doing -- my typical
scenario, unfortunately... never enough time to just sit down and truly
learn something. :(
 
> Another thing, is there a way to define new tasks defined by scripts?

Now, this one I can answer -- because I snarf'd it from the doc :)

<target name="setup">
    <script language="javascript"> <![CDATA[
      for (i=1; i<=10; i++) {
        echo = squares.createTask("echo");
        main.addTask(echo);
        echo.setMessage(i*i);
      }
    ]]> </script>
  </target>

  <target name="main" depends="setup" />

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message