Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

In gradle is there a way to determine if it is being run by eclipse during the configure phase?

It seems eclipse can't handle some things that gradle from the command line and intellij cover.

I would like to put in code in gradle that will execute during the configure phase only when it is being run from eclipse.

Something like the below in the root build.gradle

if(we are being executed by eclipse) {

     task prepareForEclipse {
         // do something necessary for eclipse
     }
     // add a dependency of the above to this:
     firstTaskExecutedWhenEclipseDoesAnImportOrReImport {
         dependsOn prepareForEclipseImport
     }
 }
question from:https://stackoverflow.com/questions/65876011/in-gradle-is-there-a-way-to-determine-if-it-is-being-run-by-eclipse-during-the-c

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...