ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject RE: [PATCH] New <case> task
Date Wed, 11 Oct 2000 19:20:56 GMT
--- Jose  Alberto Fernandez <> 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");
    ]]> </script>

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



Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!

View raw message