replace project.getProjectRoot() by project.getRootDirectory()