Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » org.apache.tools.ant.Task#getProject() returns null in custom ant task when called from within JUnit
org.apache.tools.ant.Task#getProject() returns null in custom ant task when called from within JUnit [message #327035] Mon, 07 April 2008 12:46 Go to next message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 37
Registered: July 2009
Member
Hi all,

im am developing a custom ant task.
I had a problem with getProject() returning null.
After looking at Bugzilla 34466
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=34466) I mananged to get
it work in the exported plug-in.
However when called from within a JUnit plug-in test or a self-hosted
runtime workbench, the problem is still present.

Does anyone have an idea how to solve this?

Cheers,
Lars
Re: org.apache.tools.ant.Task#getProject() returns null in custom ant task when called from within J [message #327126 is a reply to message #327035] Thu, 10 April 2008 19:02 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Hi Lars,

Have you checked out
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ant_developing.htm
It lays out the best practises for testing custom ant tasks or types.

HTH
Darins
http://runnerwhocodes.blogspot.com

"Lars Heinemann" <Lars.Heinemann@innovations.de> wrote in message
news:ftd53k$du$1@build.eclipse.org...
> Hi all,
>
> im am developing a custom ant task.
> I had a problem with getProject() returning null.
> After looking at Bugzilla 34466
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=34466) I mananged to get it
> work in the exported plug-in.
> However when called from within a JUnit plug-in test or a self-hosted
> runtime workbench, the problem is still present.
>
> Does anyone have an idea how to solve this?
>
> Cheers,
> Lars
Re: org.apache.tools.ant.Task#getProject() returns null in custom ant task when called from within J [message #327141 is a reply to message #327126] Fri, 11 April 2008 11:51 Go to previous message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 37
Registered: July 2009
Member
Thanks Darin,

the solution was to exclude the ant-bin folder from the Plug-in runtime
classpath.

Cheers,
Lars

Darin Swanson schrieb:
> Hi Lars,
>
> Have you checked out
> http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ant_developing.htm
> It lays out the best practises for testing custom ant tasks or types.
>
> HTH
> Darins
> http://runnerwhocodes.blogspot.com
>
> "Lars Heinemann" <Lars.Heinemann@innovations.de> wrote in message
> news:ftd53k$du$1@build.eclipse.org...
>> Hi all,
>>
>> im am developing a custom ant task.
>> I had a problem with getProject() returning null.
>> After looking at Bugzilla 34466
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=34466) I mananged to get it
>> work in the exported plug-in.
>> However when called from within a JUnit plug-in test or a self-hosted
>> runtime workbench, the problem is still present.
>>
>> Does anyone have an idea how to solve this?
>>
>> Cheers,
>> Lars
>
>
Previous Topic:Dynamic menus
Next Topic:Problem with custom Ant Task inheriting from abstract Task located in different plug-in
Goto Forum:
  


Current Time: Thu Dec 26 13:25:48 GMT 2024

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

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

Back to the top