Ant problems [message #58124] |
Sun, 21 September 2003 03:45 |
Eclipse User |
|
|
|
Originally posted by: no.spam.com
I have created a custom ant task (that extends the Task class), which works
perfectly when run from the command line or in JBuilder, but will not
function in eclipse.
I have located the problem in the init method:
public void init()
{
// when run in Eclipse the following line always returns null
callee = (Ant)super.project.createTask("ant");
callee.setOwningTarget(super.target);
callee.setTaskName(getTaskName());
callee.setLocation(super.location);
callee.init();
}
As a test I have tried changing this so the createTask call creates
different tasks (e.g. antcall etc.), however nothing works.
I have run this on the command line with the ant version that comes with
eclipse (plugin org.apache.ant_1.5.4) and it works fine.
In addition I have also changed the ant runtime to use a different versions
of ant, but to no avail.
I have a feeling that the problem lies in the way eclipse starts ant (i.e.
org.eclipse.ant.internal.core.ant.InternalAntRunner), but I am not sure.
Has anybody had similar problems and fixed it?
Thanks in advance,
Kevin
|
|
|
Powered by
FUDForum. Page generated in 0.03198 seconds