ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Creating CallTarget in BSH to make a antcall
Date Mon, 02 Dec 2002 16:21:03 GMT
On Mon, 2 Dec 2002, Andersson Jan <Jan.Andersson@agriculture.gov.ie>
wrote:

> xyz = project.createTask("CallTarget"); 
> xyz.setTarget("apply.patch_file"); //xyz seems to be null here...

Sure it is.  createTask takes the name of the task, not the name of
the class implementing the task.

xyz = project.createTask("antcall"); 

should work.

Stefan

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