Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Ant problems
Ant problems [message #58124] Sun, 21 September 2003 03:45
Eclipse UserFriend
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
Previous Topic:CVS Problem
Next Topic:Ant problems
Goto Forum:
  


Current Time: Sat Apr 27 00:16:58 GMT 2024

Powered by FUDForum. Page generated in 0.03210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top