Task that depends on .project and .classpath


(x1000) #1

Hi,

I have a task that does some generation steps using eclipse MWE2. For this I need the up-to-date .project and .classpath (as generated by the eclipse plugin).

task mwe2Workstep(type: JavaExec, depends: eclipse) {

How do I specify that my tasks depends on the output of the eclipse plugin (it should run the eclipse task when no .project or .classpath is there or it is outdated) ?


(Peter Niederwieser) #2
task myTask {
    dependsOn eclipseClasspath, eclipseProject
}