ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarzynka, Mark" <mjarzy...@fnni.com>
Subject Re: Setting <param> for <antcall> in javascript
Date Tue, 18 Jun 2002 17:04:04 GMT
When I try to execute this script under Ant 1.4.1 I get the following:

caller.xml:3: java.lang.NullPointerException.  It doesn't seem to like the 
creation of the parameter (ac.createParam() ).  I have bsf 2.2 and rhino
1_5R2.  
Any help would be appreciated. 

Thanks



<project name="Tester" default="caller" basedir=".">
  <target name="caller">
    <script language="javascript"> <![CDATA[
      ac = Tester.createTask("antcall");
      ac.setTarget("callee");
      acparam=ac.createParam();
      acparam.setName("param");
      acparam.setValue("hi there");
      ac.execute();
      ]]>
    </script>
  </target>

  <target name="callee">
    <echo>${param}</echo>
  </target>
</project>


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