Running Ant task before debugging in Eclipse

I have an Ant task that, when launched, will update the version number in a text file. Is it possible that this run was done before the Eclipse Run / Debug configuration, except that it was started manually each time?

I think in another IDE it is called a "compilation trigger" and a "trigger trigger".

Summary:

  • Click the Debug button on the Eclipse toolbar
  • The Ant task that I specify runs
  • Debug configuration for current project launches
+6
source share
1 answer

You can add a โ€œcompilation triggerโ€ by adding a new Builder to the project. In the project properties, select Builders and click Create Ant Builder. Then select the xml assembly file and the target you want to run. Then this task will be integrated into all your assemblies.

+10
source

Source: https://habr.com/ru/post/911385/


All Articles