Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Run tasks when Eclipse build is triggered #266
Issue by oehme
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.
See also the full checklist.
This was referenced
Feb 9, 2017
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.)
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
@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.)