Closed Maaxed closed 2 years ago
Can you provide the exact error?
In Eclipse I get
and I cannot run the client/server unless I change "Projet" from "Example" to "Test" in the configuration
And in VSCode, I get
when running the runClient configuration
To be more precise, I tested by unzipping the MDK in a folder called Example and just added the following line to the build.gradle
eclipse.project.name = "Test"
When running the genEclipseRuns task, in the *.launch xmls I get
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="Example"/>
instead of
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="Test"/>
and in the VSCode launch.json when running the genVSCodeRuns, I get
"projectName": "Example",
instead of
"projectName": "Test",
This fixes an issue with Eclipse and VSCode run generators where runs are generated with the wrong project name.
Changing the name of the eclipse project in the build.gradle file of a mod, ie adding the following line
would previously result in an error in the generated run files.
With this PR, the run generators use the name of the eclipse project as declared in the build.gradle to fill the PROJECT_ATTR attribute of the eclipse run xml and the projectName property of the VSCode run json.