Root task name

Hello,
With this code :
Project project = new Project(fileTmp.getAbsolutePath());
Task root = project.getRootTask();
root.setName(“name”);

“name” is not displayed on the root task (project summary task)

Can you explain me how to do that ?
Best regards,

@fcharlet2 ,

the following code can be used to set the name of project summary task:

project.setTitle("name");