Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » LinkageError when executing an Ant task that implement BuildListener
LinkageError when executing an Ant task that implement BuildListener [message #326781] Tue, 01 April 2008 12:47 Go to next message
Eclipse UserFriend
Originally posted by: patrick.laplante.cmcelectronics.ca

Hi,

I have a plugin that contains ANT tasks. One of these task implement
org.apache.tools.ant.BuildListener

All the tasks are working fine except the one implementing BuildListener.
I receive:
BUILD FAILED
Test.xml:18: The following error occurred while executing this line:
java.lang.LinkageError: org/apache/tools/ant/BuildEvent

when launching the target inside eclipse. Some interesting observation:
1- This task works when the target is launched from outside eclipse.
2- Also, it works inside eclipse but when I launch the build in the same
JVM and this is not exactly what I want.

Hope someone can help

thanks
Re: LinkageError when executing an Ant task that implement BuildListener [message #326900 is a reply to message #326781] Wed, 02 April 2008 22:58 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I would take an educated guess that your Ant tasks were compiled against an
incompatible version of BuildEvent.
Are you using the same Ant home entries for all runs?

HTH
Darins
http://runnerwhocodes.blogspot.com

"Patrick laplante" <patrick.laplante@cmcelectronics.ca> wrote in message
news:920b5d85edcf5f6eab5e5b023d03adff$1@www.eclipse.org...
> Hi,
>
> I have a plugin that contains ANT tasks. One of these task implement
> org.apache.tools.ant.BuildListener
>
> All the tasks are working fine except the one implementing BuildListener.
> I receive:
> BUILD FAILED
> Test.xml:18: The following error occurred while executing this line:
> java.lang.LinkageError: org/apache/tools/ant/BuildEvent
>
> when launching the target inside eclipse. Some interesting observation:
> 1- This task works when the target is launched from outside eclipse.
> 2- Also, it works inside eclipse but when I launch the build in the same
> JVM and this is not exactly what I want.
>
> Hope someone can help
>
> thanks
>
Previous Topic:PDE Build fails with "Java returned 13"
Next Topic:CommonNavigator, LinkHelper
Goto Forum:
  


Current Time: Sun Nov 24 17:43:58 GMT 2024

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

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

Back to the top