ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Setting <param> for <antcall> in javascript
Date Tue, 11 Jun 2002 15:39:53 GMT
--- "Grinvald, Edward" <EDWARD.GRINVALD@ca.com> wrote:
> I'm trying to write a <script> in javascript that will make an
> antcall. [...] is tehre any way for me to set the <param> being
> passed to the target?

  <target name="caller">
    <script language="javascript"> <![CDATA[
      ac = project.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>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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