Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with Eclipse ANT integration
Problem with Eclipse ANT integration [message #336616] Thu, 25 June 2009 09:42 Go to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 228
Registered: July 2009
Senior Member
Hi,

I'm not sure this is the correct newsgroup for my question, so if it
isn't please do advise me where I should post this!

I am developing a plugin that contributes a number of ant tasks to
Eclipse. The classes implementing these tasks are subclasses of some
other ant tasks that are provided by another plugin not under my control.

All is fine as long as I am editing a build.xml file: My ant tasks are
found and recognised and I can use AutoComplete for them as usual.
However, when I want to execute the build script, I get an error that it
cannot find the class my task is subclassing. It advises me to place the
appropriate jar file on the classpath. At the same time, however, my
build script also uses some tasks from that other plugin and they work
fine, so the jar file must already be on the classpath.

I have tried to include the other jar in the Class-Path entry of my jar
file's MANIFEST.MF, but failed to do so because I cannot figure out a
stable relative path between the two jar files. What is the official way
to do this?

Many thanks in advance,

Steffen
Re: Problem with Eclipse ANT integration [message #336658 is a reply to message #336616] Fri, 26 June 2009 12:58 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 228
Registered: July 2009
Senior Member
Hi,

Does anybody have any comments on this question?

Many thanks,

Steffen

Steffen Zschaler wrote:
> Hi,
>
> I'm not sure this is the correct newsgroup for my question, so if it
> isn't please do advise me where I should post this!
>
> I am developing a plugin that contributes a number of ant tasks to
> Eclipse. The classes implementing these tasks are subclasses of some
> other ant tasks that are provided by another plugin not under my control.
>
> All is fine as long as I am editing a build.xml file: My ant tasks are
> found and recognised and I can use AutoComplete for them as usual.
> However, when I want to execute the build script, I get an error that
> it cannot find the class my task is subclassing. It advises me to
> place the appropriate jar file on the classpath. At the same time,
> however, my build script also uses some tasks from that other plugin
> and they work fine, so the jar file must already be on the classpath.
>
> I have tried to include the other jar in the Class-Path entry of my
> jar file's MANIFEST.MF, but failed to do so because I cannot figure
> out a stable relative path between the two jar files. What is the
> official way to do this?
>
> Many thanks in advance,
>
> Steffen
Previous Topic:eclipse debug platform: starting directly in suspend mode and connecting variable view
Next Topic:Documentation on Command's handlers (Using commands in cheatsheets).
Goto Forum:
  


Current Time: Fri Dec 19 16:46:06 GMT 2014

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

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