Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [PDE Build] Ant customcallback not working when plugin is packaged
[PDE Build] Ant customcallback not working when plugin is packaged [message #487230] Tue, 22 September 2009 14:15 Go to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030902070909000907080600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

i got some troubles to have my pde build working.

Here is my problem :

i need to post compile files when i want to export my project as plugin.
so i created a customcallback build file, and referenced it in my
build.properties file.

this custom call back file calls a task that resides in another plugin,
says builderplugin.
so my task looks like this :

<target name="post.compile.@dot">

<taskdef name="mytask" classname="org.eclipse.BuilderTask">
</taskdef>

<mytask project="." target="${target.folder}"/>
</target>

i packaged the Buildertask inside a jar inside the builderplugin.

Now, when i tried to export my project with the customcallback, it only
works in runtime environment, with the builderplugin in workspace.

in a fresh install, with the builderplugin installed, it does not work,
i got the following :
[subant] Failure for target 'post.compile.@dot' of:
/tmp/build/N200909221546/eclipse/plugins/org.eclipse.emf.eef .codegen/build.acceleo
[build] [subant] The following error occurred while executing
this line:
[build] [subant]
/tmp/build/N200909221546/eclipse/plugins/org.eclipse.emf.eef .codegen/build.acceleo:80:
taskdef class org.eclipse.BuilderTask cannot be found


Any hints ?


thanks

--------------030902070909000907080600
Content-Type: text/x-vcard; charset=utf-8;
name="stephane_bouchet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="stephane_bouchet.vcf"

begin:vcard
fn;quoted-printable:St=C3=A9phane Bouchet
n;quoted-printable:Bouchet;St=C3=A9phane
org:Obeo
adr;quoted-printable:;;;Rez=C3=A9;;44400;France
email;internet:stephane.bouchet@obeo.fr
x-mozilla-html:FALSE
version:2.1
end:vcard


--------------030902070909000907080600--
Re: [PDE Build] Ant customcallback not working when plugin is packaged [message #487625 is a reply to message #487230] Wed, 23 September 2009 19:19 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The org.eclipse.ant.core.antRunner application that PDE/Build runs in
will automatically setup classpaths for ant contributions that are
declared using an extension point.

If you don't already, try having your builderplugin define this
extension point, something like:

<extension point="org.eclipse.ant.core.antTasks">
<antTask
library="builderplugin-ant.jar"
name="mytask"
class="org.eclipse.BuilderTask" />
</extension>


In this case, since the antRunner sets everything up for you, you
probably won't even need the <taskdef/>

-Andrew
Stéphane Bouchet wrote:
> Hi,
>
> i got some troubles to have my pde build working.
>
> Here is my problem :
>
> i need to post compile files when i want to export my project as plugin.
> so i created a customcallback build file, and referenced it in my
> build.properties file.
>
> this custom call back file calls a task that resides in another plugin,
> says builderplugin.
> so my task looks like this :
>
> <target name="post.compile.@dot">
>
> <taskdef name="mytask" classname="org.eclipse.BuilderTask">
> </taskdef>
>
> <mytask project="." target="${target.folder}"/>
> </target>
>
> i packaged the Buildertask inside a jar inside the builderplugin.
>
> Now, when i tried to export my project with the customcallback, it only
> works in runtime environment, with the builderplugin in workspace.
>
> in a fresh install, with the builderplugin installed, it does not work,
> i got the following :
> [subant] Failure for target 'post.compile.@dot' of:
> /tmp/build/N200909221546/eclipse/plugins/org.eclipse.emf.eef .codegen/build.acceleo
>
> [build] [subant] The following error occurred while executing
> this line:
> [build] [subant]
> /tmp/build/N200909221546/eclipse/plugins/org.eclipse.emf.eef .codegen/build.acceleo:80:
> taskdef class org.eclipse.BuilderTask cannot be found
>
>
> Any hints ?
>
>
> thanks
Re: [PDE Build] Ant customcallback not working when plugin is packaged [message #488104 is a reply to message #487625] Fri, 25 September 2009 14:54 Go to previous message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080206050600050208060502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Andrew,

thanks for the pointers.

Actually, i moved into something different, that is to call my custom
builder with <eclipse.incrementalBuild /> task.

it works better ;)

Cheers,




Andrew Niefer a
Previous Topic:Eclipse php (galileo) - problems!!
Next Topic:eclipse.ini on Mac -vm being ignored
Goto Forum:
  


Current Time: Tue Mar 19 07:20:25 GMT 2024

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

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

Back to the top