Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Use of eclipse.buildScript, need help!!
icon9.gif  Use of eclipse.buildScript, need help!! [message #493919] Wed, 28 October 2009 14:00 Go to next message
valerossi46  is currently offline valerossi46 Friend
Messages: 10
Registered: October 2009
Junior Member
Hi !

I'm trying to generate a build.xml file for à plugin from a ant script.
Here's my script:

<project name="generateBuildFiles" default="createBuildFile">
<target name="createBuildFile">
<eclipse.buildScript elements="plugins@my.project.to.build"
buildDirectory="/home/........./myWorkspace" />
</target>
</project>


I call this ant script by the command:

export LAUNCHER_PLUGIN_PATH=$ECLIPSE_INSTALL_DIR/plugins/org.eclips e.equinox.launcher_1.0.101.R34x_v20081125.jar

java -jar $LAUNCHER_PLUGIN_PATH -application org.eclipse.ant.core.antRunner -v -buildfile ./generateBuildFiles.xml


I have the following trace:
Buildfile: /home/........../generateBuildFiles.xml
createBuildFile:
BUILD SUCCESSFUL
Total time: 160 milliseconds

But nothing change in my plugin directtory nor my workspace Mad
Any idea ?
My aim is to have a jar file for my plugin from a command line script.
Thanks!

[Updated on: Wed, 28 October 2009 14:01]

Report message to a moderator

Re: Use of eclipse.buildScript, need help!! [message #493970 is a reply to message #493919] Wed, 28 October 2009 15:52 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The element attribute needs to be "plugin@..." not "plugins".

Also:
- The "my.project.to.build" needs to be the Bundle-SymbolicName, not the
project name.
- You need to provide the location of all the other bundles that your
bundle will transitively require. Generally, setting the attribute
baseLocation="${eclipse.home}" might be enough.

valerossi46 wrote:
> Hi !
>
> I'm trying to generate a build.xml file for à plugin from a ant script.
> Here's my script:
>
> <project name="generateBuildFiles" default="createBuildFile">
> <target name="createBuildFile">
> <eclipse.buildScript elements="mailto:plugins@my.project.to.build"
> buildDirectory="/home/........./myWorkspace" />
> </target>
> </project>
>
> I call this ant script by the command:
>
> export LAUNCHER_PLUGIN_PATH=$ECLIPSE_INSTALL_DIR/plugins/org.eclips
> e.equinox.launcher_1.0.101.R34x_v20081125.jar
>
> java -jar $LAUNCHER_PLUGIN_PATH -application
> org.eclipse.ant.core.antRunner -v -buildfile ./generateBuildFiles.xml
>
> I have the following trace:
> Buildfile: /home/........../generateBuildFiles.xml
> createBuildFile:
> BUILD SUCCESSFUL
> Total time: 160 milliseconds
>
> But nothing change in my plugin directtory nor my workspace :x Any idea ?
> My aim is to have a jar file for my plugin from a command line script.
> Thanks!
Re: Use of eclipse.buildScript, need help!! [message #493988 is a reply to message #493970] Wed, 28 October 2009 16:32 Go to previous message
valerossi46  is currently offline valerossi46 Friend
Messages: 10
Registered: October 2009
Junior Member
It works !!! Cool Cool
It was just this "s" after plugin....... Embarrassed

Thanks a lot Andrew!!
Re: Use of eclipse.buildScript, need help!! [message #602989 is a reply to message #493919] Wed, 28 October 2009 15:52 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The element attribute needs to be "plugin@..." not "plugins".

Also:
- The "my.project.to.build" needs to be the Bundle-SymbolicName, not the
project name.
- You need to provide the location of all the other bundles that your
bundle will transitively require. Generally, setting the attribute
baseLocation="${eclipse.home}" might be enough.

valerossi46 wrote:
> Hi !
>
> I'm trying to generate a build.xml file for à plugin from a ant script.
> Here's my script:
>
> <project name="generateBuildFiles" default="createBuildFile">
> <target name="createBuildFile">
> <eclipse.buildScript elements="mailto:plugins@my.project.to.build"
> buildDirectory="/home/........./myWorkspace" />
> </target>
> </project>
>
> I call this ant script by the command:
>
> export LAUNCHER_PLUGIN_PATH=$ECLIPSE_INSTALL_DIR/plugins/org.eclips
> e.equinox.launcher_1.0.101.R34x_v20081125.jar
>
> java -jar $LAUNCHER_PLUGIN_PATH -application
> org.eclipse.ant.core.antRunner -v -buildfile ./generateBuildFiles.xml
>
> I have the following trace:
> Buildfile: /home/........../generateBuildFiles.xml
> createBuildFile:
> BUILD SUCCESSFUL
> Total time: 160 milliseconds
>
> But nothing change in my plugin directtory nor my workspace :x Any idea ?
> My aim is to have a jar file for my plugin from a command line script.
> Thanks!
Re: Use of eclipse.buildScript, need help!! [message #603001 is a reply to message #493970] Wed, 28 October 2009 16:32 Go to previous message
valerossi46  is currently offline valerossi46 Friend
Messages: 10
Registered: October 2009
Junior Member
It works !!! 8) 8)
It was just this "s" after plugin....... :blush:

Thanks a lot Andrew!!
Previous Topic:p2.gathering causing target does not exist error
Next Topic:Use eclipsec.exe when building headless RCP
Goto Forum:
  


Current Time: Sat Aug 08 18:40:15 GMT 2020

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

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

Back to the top