Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Using the "pde.build" target of generated ant scripts
Using the "pde.build" target of generated ant scripts [message #1281] Fri, 18 April 2008 14:43 Go to next message
Eclipse UserFriend
Originally posted by: le_nemo.yahoo.fr

Hello,

I am trying to use the "pde.build" target of ant scripts generated by
PDE. I use the command specified in the the documentation. In my case,
it is :

java -Xmx1024m -jar
/opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x _v20080118.jar
-application org.eclipse.ant.core.antRunner -buildfile
/full/path/to/my/project/build.xml -target main

The scripts are running well, until :

fetchElement:

BUILD FAILED
/full/path/to/my/project/build.xml:34: The following error occured
while executing this line:
/full/path/to/my/project/build.xml:77: The following error occured
while executing this line:
/full/path/to/my/project/customTargets.xml:10: The following error
occured while executing this line:
/full/path/to/my/project/allElements.xml:12: The following error
occured while executing this line:
/full/path/to/my/project/genericTargets.xml:42: Problem: failed to
create task or type eclipse.fetch
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/type have been declared.
Action: CHeck that any <presetdef>/<macrodef> declarations have taken
place.

I looked in the genericTargets.xml at line 42, and it seems to be all
right (this file is generated by PDE).

Is there something i did wrong ?
The scripts are executed on a GNU/Linux machine, with Eclipse 3.3.2
(Europa).

Thank you,

Francois-Xavier Bru
Re: Using the "pde.build" target of generated ant scripts [message #1303 is a reply to message #1281] Fri, 18 April 2008 20:00 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
"eclipse.fetch" is a custom task provided by org.eclipse.pde.build. It is
expected that the org.eclipse.ant.core.antRunner application will set up the ant
classpaths properly so that this and other custom tasks are found properly.

Does /opt/eclipse contain a full eclipse install?
You could try running something like

java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
-application org.eclipse.ant.core.antRunner -console -noexit

And at the osgi console, type "ss org.eclipse.pde.build" to see if the pde.build
is active or at least resolved.

-Andrew

Francois-Xavier Bru wrote:
> Hello,
>
> I am trying to use the "pde.build" target of ant scripts generated by
> PDE. I use the command specified in the the documentation. In my case,
> it is :
>
> java -Xmx1024m -jar
> /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x _v20080118.jar
> -application org.eclipse.ant.core.antRunner -buildfile
> /full/path/to/my/project/build.xml -target main
>
> The scripts are running well, until :
>
> fetchElement:
>
> BUILD FAILED
> /full/path/to/my/project/build.xml:34: The following error occured while
> executing this line:
> /full/path/to/my/project/build.xml:77: The following error occured while
> executing this line:
> /full/path/to/my/project/customTargets.xml:10: The following error
> occured while executing this line:
> /full/path/to/my/project/allElements.xml:12: The following error occured
> while executing this line:
> /full/path/to/my/project/genericTargets.xml:42: Problem: failed to
> create task or type eclipse.fetch
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/type have been declared.
> Action: CHeck that any <presetdef>/<macrodef> declarations have taken
> place.
>
> I looked in the genericTargets.xml at line 42, and it seems to be all
> right (this file is generated by PDE).
>
> Is there something i did wrong ?
> The scripts are executed on a GNU/Linux machine, with Eclipse 3.3.2
> (Europa).
>
> Thank you,
>
> Francois-Xavier Bru
>
>
Re: Using the "pde.build" target of generated ant scripts [message #1878 is a reply to message #1303] Mon, 21 April 2008 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: le_nemo.yahoo.fr

Thank you for your answer,

I don't know why today the problem is resolved. As you say, something
was surely missing, or the paths were not up to date. So i'm sorry for
disturbing you.

But your suggestion to look at the osgi console when problems happens
will be helpfull for me.

Good bye

Dans son message précédent, Andrew Niefer a écrit :
> "eclipse.fetch" is a custom task provided by org.eclipse.pde.build. It is
> expected that the org.eclipse.ant.core.antRunner application will set up the
> ant classpaths properly so that this and other custom tasks are found
> properly.
>
> Does /opt/eclipse contain a full eclipse install?
> You could try running something like
>
> java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
> -application org.eclipse.ant.core.antRunner -console -noexit
>
> And at the osgi console, type "ss org.eclipse.pde.build" to see if the
> pde.build is active or at least resolved.
>
> -Andrew
>
> Francois-Xavier Bru wrote:
>> Hello,
>>
>> I am trying to use the "pde.build" target of ant scripts generated by PDE.
>> I use the command specified in the the documentation. In my case, it is :
>>
>> java -Xmx1024m -jar
>> /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x _v20080118.jar
>> -application org.eclipse.ant.core.antRunner -buildfile
>> /full/path/to/my/project/build.xml -target main
>>
>> The scripts are running well, until :
>>
>> fetchElement:
>>
>> BUILD FAILED
>> /full/path/to/my/project/build.xml:34: The following error occured while
>> executing this line:
>> /full/path/to/my/project/build.xml:77: The following error occured while
>> executing this line:
>> /full/path/to/my/project/customTargets.xml:10: The following error occured
>> while executing this line:
>> /full/path/to/my/project/allElements.xml:12: The following error occured
>> while executing this line:
>> /full/path/to/my/project/genericTargets.xml:42: Problem: failed to create
>> task or type eclipse.fetch
>> Cause: The name is undefined.
>> Action: Check the spelling.
>> Action: Check that any custom tasks/type have been declared.
>> Action: CHeck that any <presetdef>/<macrodef> declarations have taken
>> place.
>>
>> I looked in the genericTargets.xml at line 42, and it seems to be all right
>> (this file is generated by PDE).
>>
>> Is there something i did wrong ?
>> The scripts are executed on a GNU/Linux machine, with Eclipse 3.3.2
>> (Europa).
>>
>> Thank you,
>>
>> Francois-Xavier Bru
>>
>>
Re: Using the "pde.build" target of generated ant scripts [message #565877 is a reply to message #1281] Fri, 18 April 2008 20:00 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
"eclipse.fetch" is a custom task provided by org.eclipse.pde.build. It is
expected that the org.eclipse.ant.core.antRunner application will set up the ant
classpaths properly so that this and other custom tasks are found properly.

Does /opt/eclipse contain a full eclipse install?
You could try running something like

java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
-application org.eclipse.ant.core.antRunner -console -noexit

And at the osgi console, type "ss org.eclipse.pde.build" to see if the pde.build
is active or at least resolved.

-Andrew

Francois-Xavier Bru wrote:
> Hello,
>
> I am trying to use the "pde.build" target of ant scripts generated by
> PDE. I use the command specified in the the documentation. In my case,
> it is :
>
> java -Xmx1024m -jar
> /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x _v20080118.jar
> -application org.eclipse.ant.core.antRunner -buildfile
> /full/path/to/my/project/build.xml -target main
>
> The scripts are running well, until :
>
> fetchElement:
>
> BUILD FAILED
> /full/path/to/my/project/build.xml:34: The following error occured while
> executing this line:
> /full/path/to/my/project/build.xml:77: The following error occured while
> executing this line:
> /full/path/to/my/project/customTargets.xml:10: The following error
> occured while executing this line:
> /full/path/to/my/project/allElements.xml:12: The following error occured
> while executing this line:
> /full/path/to/my/project/genericTargets.xml:42: Problem: failed to
> create task or type eclipse.fetch
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/type have been declared.
> Action: CHeck that any <presetdef>/<macrodef> declarations have taken
> place.
>
> I looked in the genericTargets.xml at line 42, and it seems to be all
> right (this file is generated by PDE).
>
> Is there something i did wrong ?
> The scripts are executed on a GNU/Linux machine, with Eclipse 3.3.2
> (Europa).
>
> Thank you,
>
> Francois-Xavier Bru
>
>
Re: Using the "pde.build" target of generated ant scripts [message #566024 is a reply to message #1303] Mon, 21 April 2008 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: le_nemo.yahoo.fr

Thank you for your answer,

I don't know why today the problem is resolved. As you say, something
was surely missing, or the paths were not up to date. So i'm sorry for
disturbing you.

But your suggestion to look at the osgi console when problems happens
will be helpfull for me.

Good bye

Dans son message précédent, Andrew Niefer a écrit :
> "eclipse.fetch" is a custom task provided by org.eclipse.pde.build. It is
> expected that the org.eclipse.ant.core.antRunner application will set up the
> ant classpaths properly so that this and other custom tasks are found
> properly.
>
> Does /opt/eclipse contain a full eclipse install?
> You could try running something like
>
> java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
> -application org.eclipse.ant.core.antRunner -console -noexit
>
> And at the osgi console, type "ss org.eclipse.pde.build" to see if the
> pde.build is active or at least resolved.
>
> -Andrew
>
> Francois-Xavier Bru wrote:
>> Hello,
>>
>> I am trying to use the "pde.build" target of ant scripts generated by PDE.
>> I use the command specified in the the documentation. In my case, it is :
>>
>> java -Xmx1024m -jar
>> /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x _v20080118.jar
>> -application org.eclipse.ant.core.antRunner -buildfile
>> /full/path/to/my/project/build.xml -target main
>>
>> The scripts are running well, until :
>>
>> fetchElement:
>>
>> BUILD FAILED
>> /full/path/to/my/project/build.xml:34: The following error occured while
>> executing this line:
>> /full/path/to/my/project/build.xml:77: The following error occured while
>> executing this line:
>> /full/path/to/my/project/customTargets.xml:10: The following error occured
>> while executing this line:
>> /full/path/to/my/project/allElements.xml:12: The following error occured
>> while executing this line:
>> /full/path/to/my/project/genericTargets.xml:42: Problem: failed to create
>> task or type eclipse.fetch
>> Cause: The name is undefined.
>> Action: Check the spelling.
>> Action: Check that any custom tasks/type have been declared.
>> Action: CHeck that any <presetdef>/<macrodef> declarations have taken
>> place.
>>
>> I looked in the genericTargets.xml at line 42, and it seems to be all right
>> (this file is generated by PDE).
>>
>> Is there something i did wrong ?
>> The scripts are executed on a GNU/Linux machine, with Eclipse 3.3.2
>> (Europa).
>>
>> Thank you,
>>
>> Francois-Xavier Bru
>>
>>
Previous Topic:headless product build creating different folders for each config
Next Topic:headless product build creating different folders for each config
Goto Forum:
  


Current Time: Fri Apr 26 08:43:07 GMT 2024

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

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

Back to the top