Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Way to modify text file in RCP project before build with ANT
Way to modify text file in RCP project before build with ANT [message #330538] Thu, 31 July 2008 16:53 Go to next message
Eclipse UserFriend
Originally posted by: mircea.luchian.matrox.com

Hello,

I am trying to modify a text file that contains the build data and time
before building / exporting my application. I cannot use a "custom
build" checkbox and generate a build.xml from the PDE Tools popup menu
because among teams, the physical project location changes from PC to PC.
I need to hook my ANT task into a predefined event in Eclipse and be
able to run it while keeping the default build mechanism (not the custom
one) provided in the "build" tab.
In Netbeans this was easy as I had a build.xml file that I could
customize and add a "target" tab with a predefined target name (e.g.:
post-jar, pre-init, port-init, etc.).
How can I hook a custom ANT task in a build event in Eclipse?

Thanks,

Mircea
Re: Way to modify text file in RCP project before build with ANT [message #330542 is a reply to message #330538] Thu, 31 July 2008 20:32 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
PDE/Build supports custom callbacks in the generated build.xml.
See
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_custom_callbacks.htm

This is used during automated headless build and export. These won't
get run as part of a workspace build unless you set up an ant builder on
your project.

-Andrew

Mircea Luchian wrote:
> Hello,
>
> I am trying to modify a text file that contains the build data and time
> before building / exporting my application. I cannot use a "custom
> build" checkbox and generate a build.xml from the PDE Tools popup menu
> because among teams, the physical project location changes from PC to PC.
> I need to hook my ANT task into a predefined event in Eclipse and be
> able to run it while keeping the default build mechanism (not the custom
> one) provided in the "build" tab.
> In Netbeans this was easy as I had a build.xml file that I could
> customize and add a "target" tab with a predefined target name (e.g.:
> post-jar, pre-init, port-init, etc.).
> How can I hook a custom ANT task in a build event in Eclipse?
>
> Thanks,
>
> Mircea
Re: Way to modify text file in RCP project before build with ANT [message #330555 is a reply to message #330542] Fri, 01 August 2008 13:52 Go to previous message
Eclipse UserFriend
Originally posted by: mircea.luchian.matrox.com

I am interested in generating the build ID only when I export so the
link below is perfect.

Thank you,

Mircea


Andrew Niefer wrote:
> PDE/Build supports custom callbacks in the generated build.xml.
> See
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_custom_callbacks.htm
>
>
> This is used during automated headless build and export. These won't
> get run as part of a workspace build unless you set up an ant builder
> on your project.
>
> -Andrew
>
> Mircea Luchian wrote:
>> Hello,
>>
>> I am trying to modify a text file that contains the build data and
>> time before building / exporting my application. I cannot use a
>> "custom build" checkbox and generate a build.xml from the PDE Tools
>> popup menu because among teams, the physical project location changes
>> from PC to PC.
>> I need to hook my ANT task into a predefined event in Eclipse and be
>> able to run it while keeping the default build mechanism (not the
>> custom one) provided in the "build" tab.
>> In Netbeans this was easy as I had a build.xml file that I could
>> customize and add a "target" tab with a predefined target name
>> (e.g.: post-jar, pre-init, port-init, etc.).
>> How can I hook a custom ANT task in a build event in Eclipse?
>>
>> Thanks,
>>
>> Mircea
Previous Topic:Source attachments for plug-ins?
Next Topic:Following upgrade "Error: no label provider for container"
Goto Forum:
  


Current Time: Sat Nov 09 07:02:08 GMT 2024

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

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

Back to the top