Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant & Custom Targets
Ant & Custom Targets [message #166747] Thu, 01 July 2004 05:28
Eclipse UserFriend
Originally posted by: andreas.rummler.tu-ilmenau.de

Hello NG,

I'm not sure if this has been discussed before, but I didn't find
anything after searching the NG archive.

Ant build scripts are created (in 3.0) via PDE Tools > Create Ant Script.
A build.xml file will be created including some tasks relying on the
version number of the plugin. So far, so good.

When updating the plugin (for instance from version 1.0.0 to 1.0.1) I
need to recreate the build script (because of the hard-coded version
numbers in it). But what do I do with custom ant targets which need
to be executed when building my plugin (TARGETS, not TASKS!, for
instance executing javacc) I would like to add them via the Ant Editor
to the generated build.xml, but I can't because everytime the version
of the plugin increases they will be overwritten.

For me there are several questions open:
1) Is it possible to mark custom targets as "user-defined, so don't
touch them"?
2) If 1) is not possible, is there a way to edit the build.xml-template
which is used to create build files?
3) If 2) is also not possible, what is the best way to integrate custom
targets into the build system?


Best regards,

Andreas Rummler


--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
+ Andreas Rummler +
+ Technical University of Ilmenau, Germany (__) +
+ Department Of Electronic Circuits & Systems (oo) +
+ \/-------\ +
+ MAIL: mailto:arummler@acm.org || | \ +
+ MAIL: mailto:andreas.rummler@tu-ilmenau.de ||----|| * +
+ WEB : http://www.inf-technik.tu-ilmenau.de/~rummler ~~ ~~ +
+ PGP : http://www.inf-technik.tu-ilmenau.de/~rummler/public.pgp +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
Previous Topic:Compatibility with 1.5.0 Beta 2
Next Topic:IParent.getChildren(), what are children exactly?
Goto Forum:
  


Current Time: Fri Jun 06 18:28:29 EDT 2025

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

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

Back to the top