Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem in eclipse.buildScript ant task
Problem in eclipse.buildScript ant task [message #254475] Tue, 22 June 2004 06:21 Go to next message
Eclipse UserFriend
Originally posted by: xshen.actuate.com

Hi,
I met some problem when migrating my Eclipse AntRunner from 2.1.2 to
3.0RC3, it is because of the eclipse.buildScript ant task. The script in
2.1.2 works well:
<eclipse.buildScript elements="plugin@myplugin" install="${eclipse_home}"/>
so I think the corresponding 3.0RC3 one should be:
<eclipse.buildScript elements="plugin@myplugin"
workingDirectory="${eclipse_home}"/>
However, when I run this script, error occurs:
BUILD FAILED
D:\adb\build.xml:26: org.eclipse.core.runtime.CoreException: Unable to
find
element: myplugin

The build environment is exactly the same, so I don't know what's wrong
with my script, Could anybody be kind enough to help me solve this problem?

BTW, is there any document for eclipse's custom ant tasks, just like the
detailed ones in ant's manual? I've searched for a long time and can't
find
any:(
Re: Problem in eclipse.buildScript ant task [message #254625 is a reply to message #254475] Tue, 22 June 2004 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

If you are trying to build plugins that rely on 3.0, you have to set
buildingOSGi to true in eclipse.buildScript call.
<eclipse.buildScript ..... buildingOSGi="true">

There is a complete description of the 2.1 tasks in the PDE user guide,
I will complete them over week.

PaScaL

Erix wrote:
> Hi,
> I met some problem when migrating my Eclipse AntRunner from 2.1.2 to
> 3.0RC3, it is because of the eclipse.buildScript ant task. The script in
> 2.1.2 works well:
> <eclipse.buildScript elements="plugin@myplugin" install="${eclipse_home}"/>
> so I think the corresponding 3.0RC3 one should be:
> <eclipse.buildScript elements="plugin@myplugin"
> workingDirectory="${eclipse_home}"/>
> However, when I run this script, error occurs:
> BUILD FAILED
> D:\adb\build.xml:26: org.eclipse.core.runtime.CoreException: Unable to
> find
> element: myplugin
>
> The build environment is exactly the same, so I don't know what's wrong
> with my script, Could anybody be kind enough to help me solve this problem?
>
> BTW, is there any document for eclipse's custom ant tasks, just like the
> detailed ones in ant's manual? I've searched for a long time and can't
> find
> any:(
>
>
Re: Problem in eclipse.buildScript ant task [message #254858 is a reply to message #254625] Wed, 23 June 2004 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xshen.actuate.com

Hi PaScaL:

I followed your suggestion and now my script is:
<eclipse.buildScript elements="plugin@${module.name}"
workingDirectory="${eclipse_home}"
buildingOSGi="true"
/>

The plugin directory is ${eclipse_home}\plugins\${module.name}_1.0.0. I've
noticed that after executing this script, there's a new file
${module.name}_1.0.0.MF in
${eclipse_home}\configuration\org.eclipse.osgi\manifests, and the
infomation in this file reflects the information in plugin.xml of my
plugin. So I think the eclipse.buildScript actually found the correct
place of my plugin. However, the build.xml still failed to generate:
D:\adb\build.xml:26: org.eclipse.core.runtime.CoreException: Unable to
find element: pluginname. So do you have any idea what's the problem here?




Pascal Rapicault wrote:

> If you are trying to build plugins that rely on 3.0, you have to set
> buildingOSGi to true in eclipse.buildScript call.
> <eclipse.buildScript ..... buildingOSGi="true">

> There is a complete description of the 2.1 tasks in the PDE user guide,
> I will complete them over week.

> PaScaL

> Erix wrote:
> > Hi,
> > I met some problem when migrating my Eclipse AntRunner from 2.1.2 to
> > 3.0RC3, it is because of the eclipse.buildScript ant task. The script in
> > 2.1.2 works well:
> > <eclipse.buildScript elements="plugin@myplugin" install="${eclipse_home}"/>
> > so I think the corresponding 3.0RC3 one should be:
> > <eclipse.buildScript elements="plugin@myplugin"
> > workingDirectory="${eclipse_home}"/>
> > However, when I run this script, error occurs:
> > BUILD FAILED
> > D:adbbuild.xml:26: org.eclipse.core.runtime.CoreException: Unable to
> > find
> > element: myplugin
> >
> > The build environment is exactly the same, so I don't know what's wrong
> > with my script, Could anybody be kind enough to help me solve this problem?
> >
> > BTW, is there any document for eclipse's custom ant tasks, just like the
> > detailed ones in ant's manual? I've searched for a long time and can't
> > find
> > any:(
> >
> >
Re: Problem in eclipse.buildScript ant task [message #254897 is a reply to message #254858] Wed, 23 June 2004 12:02 Go to previous message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

It is probably because the plugin you are trying to generate misses some
of its prerequisites. Look in the .log file (it should be in
eclipse/workspace of the eclipse install you are running the script
from), there should be more details about what is missing.

You can also try to add baseLocation="<pathToEclipseInstall>" as a
parameter to your task.

PaScaL

Erix wrote:
> Hi PaScaL:
>
> I followed your suggestion and now my script is:
> <eclipse.buildScript elements="plugin@${module.name}"
> workingDirectory="${eclipse_home}"
> buildingOSGi="true"
> />
>
> The plugin directory is ${eclipse_home}\plugins\${module.name}_1.0.0. I've
> noticed that after executing this script, there's a new file
> ${module.name}_1.0.0.MF in
> ${eclipse_home}\configuration\org.eclipse.osgi\manifests, and the
> infomation in this file reflects the information in plugin.xml of my
> plugin. So I think the eclipse.buildScript actually found the correct
> place of my plugin. However, the build.xml still failed to generate:
> D:\adb\build.xml:26: org.eclipse.core.runtime.CoreException: Unable to
> find element: pluginname. So do you have any idea what's the problem here?
>
>
>
>
> Pascal Rapicault wrote:
>
>
>>If you are trying to build plugins that rely on 3.0, you have to set
>>buildingOSGi to true in eclipse.buildScript call.
>><eclipse.buildScript ..... buildingOSGi="true">
>
>
>>There is a complete description of the 2.1 tasks in the PDE user guide,
>>I will complete them over week.
>
>
>>PaScaL
>
>
>>Erix wrote:
>>
>>>Hi,
>>>I met some problem when migrating my Eclipse AntRunner from 2.1.2 to
>>>3.0RC3, it is because of the eclipse.buildScript ant task. The script in
>>>2.1.2 works well:
>>><eclipse.buildScript elements="plugin@myplugin" install="${eclipse_home}"/>
>>>so I think the corresponding 3.0RC3 one should be:
>>><eclipse.buildScript elements="plugin@myplugin"
>>>workingDirectory="${eclipse_home}"/>
>>>However, when I run this script, error occurs:
>>>BUILD FAILED
>>>D:adbbuild.xml:26: org.eclipse.core.runtime.CoreException: Unable to
>>>find
>>>element: myplugin
>>>
>>>The build environment is exactly the same, so I don't know what's wrong
>>>with my script, Could anybody be kind enough to help me solve this problem?
>>>
>>>BTW, is there any document for eclipse's custom ant tasks, just like the
>>>detailed ones in ant's manual? I've searched for a long time and can't
>>>find
>>>any:(
>>>
>>>
>
>
>
Previous Topic:To get menu object from org.eclipse.jface.action.IAction to disable it
Next Topic:CVS: getting the list of directories
Goto Forum:
  


Current Time: Wed Nov 26 09:26:13 GMT 2014

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

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