java – Eclipse build problem with classpath evaluation

I'm trying to build a legacy Java project using graduate.

The project build is based on a custom Java class.

I've created my custom build task in the build.gradle call the java class with the desired classpath.

Everything works fine if it is run on the command line because the classpath is evaluated as relative to the build.gradle file path (same as the graded properties: ProjectDir).

If I try to run the task in eclipse with the help of the buildship plugin, it fails with "class exception not found".

I think the problem is related to some of the graded properties that are not properly defined.

Is this the ProjectDir ?

Is there a way to say building where is the ProjectDir folder located?