ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: ANT arithmetic operation task ?
Date Sat, 13 Dec 2003 02:36:37 GMT
Here is the example that does squares..<project name="squares"
default="main" basedir=".">

  <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"/>

</project>
----- Original Message ----- 
From: "Keith Hatton" <khatton@axiomsystems.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, December 12, 2003 9:41 AM
Subject: RE: ANT arithmetic operation task ?


Perhaps you can use <script>?

-----Original Message-----
From: Nagarajan Murugesan [mailto:NMURUGESAN@Selectica.com]
Sent: 12 December 2003 14:01
To: 'user@ant.apache.org'
Subject: ANT arithmetic operation task ?


Hi All,

Is there any ANT task for simple arithmetic operations like
addtion, substraction...and so.

Thanks,
Nagarajan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message