ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Cummings" <kevin.cummi...@mongoosetech.com>
Subject anyone know how to use the script tag??
Date Thu, 28 Jun 2001 19:45:35 GMT
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>


Mime
View raw message