ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azoulay, Zacky" <zacky.azou...@sapportals.com>
Subject javascript and ant.
Date Tue, 16 Apr 2002 12:23:56 GMT
Hi,

I put the bsf.jar in the ANT_HOME/lib

I try to test xml that contain the following example ( exist in the 1.4.1
doc)

<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>
 
I got the following err

BUILD FAILED

C:\ant_test\test1.xml:5: java.lang.NoClassDefFoundError:
org/mozilla/javascript/
JavaScriptException

any help would be appreciated,

regards zacky




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


Mime
View raw message