New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tasks when Eclipse build is triggered #266
Comments
I could also imagine it being useful (and slick) if those same code generation steps could run as part of a manual build-all (Ctrl+B). Would that also be enabled by this? (I don't use auto-build: I like to be in control of when I hot-swap changes into a debugged application, among other reasons.) |
Yes, the term auto-build is a little misleading here: It would work whenever the builder is triggered, both manually and automatically. |
I thought I'd mention a use-case that might be relevant. Currently getting Eclipse to compile is a 3-step process for us, as we generate source files outside of the project directory.
Step 2 is required because if the externally-generated folders don't exist, Buildship will not have constructed (or updated) linked-resources into the Eclipse projects to use as source folders. Do you envisage it being possible (or desirable) to automate step 2 via the |
Yes, that's covered by #265 |
Great thanks. Right so maybe |
@lukeu We have a similar use case, and committed the empty generated source folders that can be added to the eclipse project model so that the full |
@ericnondahl Thanks for the tip. In our case it's to a non-repo directory (and in my specific case, a different drive. This fits in with our GNU-make parts of the build, and I gather is useful in our CI setup.) Still, the generated-source folders don't change often so the 3 steps would be done fairly infrequently & is no biggie for me now that I've figured out what's going on. (I'm getting good at it - I toggle my 30-module workspace between Maven and Buildship about once daily while we're transitioning!) My interest here is more in seeing Buildship grow even slicker - ideally zero configuration (for other team members who don't want to dive deep into Gradle, and when the build structure changes in the future.) |
Are there any plans to implement this enhancement? |
@eximius313 Yes, we still want to implement this. Currently, we have other priorities (like #354), but we'll consider this feature in our next planning meeting. |
We need this to automatically trigger |
Same here considering the |
It's a requirement for us right now. |
Also implemented as part of #871. |
Issue by oehme
Thursday May 19, 2016 at 15:21 GMT
Motivation
People often have little code generators in their build for which there is no Eclipse support. But thanks to Gradle's performance, running tasks on every Eclipse auto-build is feasible.
Proposed Change
Add
eclipse.autoBuildTasks
, expose them via the TAPI and let the Buildship builder run them on every auto-build of the project.Code review
See also the full checklist.
The text was updated successfully, but these errors were encountered: