Way to modify text file in RCP project before build with ANT [message #330538] |
Thu, 31 July 2008 16:53 |
Eclipse User |
|
|
|
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 #330555 is a reply to message #330542] |
Fri, 01 August 2008 13:52 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03034 seconds