--- Jose  Alberto Fernandez <[EMAIL PROTECTED]> 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


=====
([EMAIL PROTECTED])



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

Reply via email to