ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pellier Marc <arc...@onssapl.fgov.be>
Subject RE: How do I call another ant build file and pass parameter to it fro m a script task
Date Thu, 15 May 2003 06:39:04 GMT
  <ant antfile="subproject/property_based_subbuild.xml" inheritAll ="true">
    <property name="param1" value="version 1.x"/>
  </ant>

You pass all the properties with inheritAll
You pass a new property with nested element <property>

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: mercredi 14 mai 2003 17:37
To: user@ant.apache.org
Subject: Re: How do I call another ant build file and pass parameter to
it fro m a script task


On Wed, 14 May 2003, Manoj Sadangi <msadangi@manh.com> wrote:

> this is complaining that addProperty is not a function.

There is no method addProperty in the Property class that would take
two arguments, in fact ther is no method of that name at all.

Maybe what you really mean is

    prop.setName("sbean");
    prop.setValue(sbean);

instead of 

>              prop.addProperty("sbean",sbean);

???

Stefan

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

Mime
View raw message