[PDE Build] Ant customcallback not working when plugin is packaged [message #487230] |
Tue, 22 September 2009 14:15 |
Stephane Bouchet 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 |
Andrew Niefer 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02553 seconds