Eclipse tasks not excuting, command-line works perfectly

I’m using Eclipse to write my gradle.build within a "gradle project"
[ new >> other >> gradle project ]
however when I try to run my tasks using the “gradle tasks” view in Eclipse, they error out because they aren’t finding a file the task depends on; I’ve tried creating a file where it is trying to excute

if(File.canRead()) {
println project.name
}
else {
def props1 = project.file(‘file.txt’)
props1 << “”
}

It appears to be the main project directory, so I put the required file there but the task still won’t execute.

Any suggestions?

Hi Hans,

can you please provide a reproducible example on GitHub?

Cheers,
Stefan

I can’t use git from work but I’ll see what I can do once I get home.