This is what I am trying and it tell me that it couldn't create a task
of type script. I have the optional.jar file in the lib dir for my ant
installation. Do I need something else?

<project name="fun" default="main" basedir=".">
<property name="test" value="${testval}"/>
<target name="setProperties">
  <script language="JavaScript">
    <![CDATA[
      echo = fun.createTask("echo");
      main.addTask(echo);
      echo.setMessage(${test});
    ]]>
  </script>
</target>
<target name="main" depends="setProperties"/>
</project>

Reply via email to