Closed TrentBartlem closed 9 years ago
The Gradle project import wizard page has “Run before” and “Run after” check boxes at the top of the “Import options” group of controls. See the screenshot below.
Tasks to run are in the text boxes. Tasks in the text boxes separated by spaces are the tasks that would be run before and after the project is imported into Eclipse. Same tasks are run when the project is refreshed. Refreshing the project really removes the project and then imports it back in. Therefore, those are probably the tasks you’re looking for. The limitation is that these tasks can only be specified once during the import and will be executed for each refresh. Also these tasks come from the root project rather than from a specific subproject that you’d like to refresh…
Feel free to suggest the functionality that you’d like to have for such a hook. Please document it in a JIRA issue against GRADLE component here: https://issuetracker.springsource.com
On Jan 6, 2015, at 18:57, Trent Bartlem notifications@github.com wrote:
Other Eclipse plugins (maven etc) allow users to specify, on a per-project basis, which tasks to run as part of refreshing the project, which also covers the initial refresh after checking it out of source control.
This allows a project to automatically trigger gradle tasks on checkout, which is a significant QOL improvement.
— Reply to this email directly or view it on GitHub https://github.com/spring-projects/eclipse-integration-gradle/issues/76.
Thanks.
Other Eclipse plugins (maven etc) allow users to specify, on a per-project basis, which tasks to run as part of refreshing the project, which also covers the initial refresh after checking it out of source control.
This allows a project to automatically trigger gradle tasks on checkout, which is a significant QOL improvement.