7

I've got an Ant task that when launched will update the version number in a text file. Is it possible to have this run before an Eclipse Run / Debug configuration besides manually running it each time?

I think in another IDE it's called "compilation trigger" and "execution trigger".

Summary:

  1. Click debug icon on Eclipse toolbar
  2. An Ant task that I specify runs
  3. Debug configuration for current project runs

1 Answer 1

10

You can add a "compilation trigger" by adding a new Builder to your project. In your project properties, select Builders and click on new Ant Builder. Then select the build xml and the target that you want to run. This task will then be integrated into all your builds.

1
  • This isn't quite the full answer. Can you make that Builder call a run or debug launch configuration?
    – Robert
    Apr 21, 2017 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.