Eclipse Community Forums Forum Search:

Home » Eclipse Projects » Eclipse Platform » Problem in eclipse.buildScript ant task
Problem in eclipse.buildScript ant task Tue, 22 June 2004 02:21
 Eclipse User
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
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 07:51
 Eclipse User

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
> 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] Tue, 22 June 2004 23:30
 Eclipse User
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:
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 08:02
 Eclipse User

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

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:
> 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
>>>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: Tue Jul 29 08:47:24 EDT 2014