I am working on a project which has an Ant script for all lifecycle phases. The project, divided in small projects, is meant to be developed with Eclipse. The common version is the Indigo One.
Basically I am interested on putting a series of buttons with a shortcut each, or at least a shortcut only, to execute some of the main tasks. The relevant tasks are:
thanks
You can add a couple of "ant build" launch configurations to run your ant script(s) with specified ant targets and configuration.
Run>External Tool...>External Tools Configurations... and then select "ant build" and press "New launch configuration". On "Main" tab specify buildfile and directory on "Target" select targets you want to run on "Properties" add additional properties or specify property file.
It would be also a good idea to give each of launch configurations a descriptive name.
Later you can add your defined configuration to favorites for convenience and use them from External Tools (down arrow) on the toolbar (See: Run>External Tool...>Organize Favorites...)
You can use the Ant view, which is integrated into Eclipse. Press Ctrl+3 (cmd+3 on mac I think) and type Ant, and then open the view. Click on "Add buildfile" and add the relevant build file. It'll then have the ant tasks listed in the view which you can just run from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With