Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Any info on writing Ant scripts to build and package RCP applns.?
Any info on writing Ant scripts to build and package RCP applns.? [message #448917] Sun, 07 May 2006 16:58 Go to next message
Eclipse UserFriend
Originally posted by: nandu.k.motorola.com

Hi all,

Can someone point me to any resources showing how to write Ant scripts
that can build and package RCP applications like it is done from the
Eclipse IDE?

Thanks,
Nandu
Re: Any info on writing Ant scripts to build and package RCP applns.? [message #448919 is a reply to message #448917] Sun, 07 May 2006 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Nadu,
If you mean export your product... You can do that just right clicking in
you plugin.xml and then select PDE Tool Creante Ant Build file, since behind
the scense it is what eclipse realy do.
I realy dont know if it is what you want to do, so I hope this culd help you

"Nandkumar" <nandu.k@motorola.com> wrote in message
news:b5e767e8cd80ed21c13a6baf13cc5560$1@www.eclipse.org...
> Hi all,
>
> Can someone point me to any resources showing how to write Ant scripts
> that can build and package RCP applications like it is done from the
> Eclipse IDE?
>
> Thanks,
> Nandu
>
Re: Any info on writing Ant scripts to build and package RCP applns.? [message #448921 is a reply to message #448919] Sun, 07 May 2006 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nandu.k.motorola.com

Hi Mauro,

Thanks much for your help.

I am trying to find a way to actually create an Eclipse RCP application
through an Ant script, so I can fire off an ant script that will build the
non-GUI portions of my application and then build the whole RCP executable
without me having to manually open up the IDE and create the executable
using the Export Wizard.

We have already tried the option of creating the Ant build file from the
plugin.xml file, but the script that it creates only jars and zip bundles
for the plugins. I am not sure how to create the executable.

Thanks,
Nandu
Re: Any info on writing Ant scripts to build and package RCP applns.? [message #448922 is a reply to message #448921] Sun, 07 May 2006 19:59 Go to previous messageGo to next message
Eclipse UserFriend
Yah, it's really a good question!
Let suppose that you're doing this on Windows[ just becouse I'm in windows
now :)]
In you eclipse instalation [I'm with eclipse 3.2 rc3], go to plugins
directory
Go to
org.eclipse.platform.source_3.2.0.v20060503-1530-7gOepm_tjpp fKda\src\org.ecl
ipse.platform_3.2.0.v20060505[or something like that]"
Unzip launchersrc.zip
On launchersrc\library\win32 You will see a build that calls a build.bat to
generate the louncher :) !!!


"Nandkumar" <nandu.k@motorola.com> wrote in message
news:51923b3858c47bad7d9b878bfcaeb790$1@www.eclipse.org...
> Hi Mauro,
>
> Thanks much for your help.
>
> I am trying to find a way to actually create an Eclipse RCP application
> through an Ant script, so I can fire off an ant script that will build the
> non-GUI portions of my application and then build the whole RCP executable
> without me having to manually open up the IDE and create the executable
> using the Export Wizard.
>
> We have already tried the option of creating the Ant build file from the
> plugin.xml file, but the script that it creates only jars and zip bundles
> for the plugins. I am not sure how to create the executable.
>
> Thanks,
> Nandu
>
Re: Any info on writing Ant scripts to build and package RCP applns.? [message #448923 is a reply to message #448921] Sun, 07 May 2006 20:26 Go to previous messageGo to next message
Eclipse UserFriend
In 3.2, you can use the file called productBuild.xml in the script
folder of pde build. It allows you to take a product file and with some
customization of the build.properties from the templates folder in pde
build (you need to copy it and customize it) to produce a complete
archive of your RCP app. Once you have this customized file, just run
java -jar startup.jar -application org.eclipse.ant.core.antRunner
<pathToPDEScripts>/productBuild.xml
-Dbuilder=<pathToTheFolderContainingTheCustomizedBuildProperties >

There is no doc yet about this feature but it will be documented this week.

PaScaL

Nandkumar wrote:
> Hi Mauro,
>
> Thanks much for your help.
>
> I am trying to find a way to actually create an Eclipse RCP application
> through an Ant script, so I can fire off an ant script that will build
> the non-GUI portions of my application and then build the whole RCP
> executable without me having to manually open up the IDE and create the
> executable using the Export Wizard.
>
> We have already tried the option of creating the Ant build file from the
> plugin.xml file, but the script that it creates only jars and zip
> bundles for the plugins. I am not sure how to create the executable.
>
> Thanks,
> Nandu
>
Re: Any info on writing Ant scripts to build and package RCP applns.? [message #449083 is a reply to message #448921] Wed, 10 May 2006 07:10 Go to previous message
Eclipse UserFriend
For your reference, I presented a topic at EclipseCon on automated builds, including using the Eclipse build mechanism (albeit for 3.1).

You can read out about it more at:

http://www.rcpapps.org/EclipseCon2006/

Alex.
Previous Topic:How can I invoke "Source->Organize Imports" code programatically ?
Next Topic:Shell commands from within RCP
Goto Forum:
  


Current Time: Sun Aug 31 08:51:46 EDT 2025

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

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

Back to the top