@@ -54,15 +54,17 @@ public void toXML(XMLWriter writer) throws IOException {
5454 writer .writeAttribute ("listEntry value=\" org.eclipse.debug.ui.launchGroup.run\" " );
5555 writer .writeAttribute ("listEntry value=\" org.eclipse.debug.ui.launchGroup.debug\" " );
5656 writer .closeAttribute ("listAttribute" );
57- writer .writeAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE\" value=\" false\" " );
58- writer .writeAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES\" value=\" true\" " );
59- writer .writeAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD\" value=\" true\" " );
60- writer .writeAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.MAIN_TYPE\" value=\" " + TaskRun .getMain (mcp , mcp .getCurrentVersion (), this .getLaunchSide ()) + "\" " );
61- writer .writeAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.MODULE_NAME\" value=\" " + this .getProjectName () + "\" " );
57+
58+ writer .writeSelfEndingAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE\" value=\" false\" " );
59+ writer .writeSelfEndingAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES\" value=\" true\" " );
60+ writer .writeSelfEndingAttribute ("booleanAttribute key=\" org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD\" value=\" true\" " );
61+ writer .writeSelfEndingAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.MAIN_TYPE\" value=\" " + TaskRun .getMain (mcp , mcp .getCurrentVersion (), this .getLaunchSide ()) + "\" " );
62+ writer .writeSelfEndingAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.MODULE_NAME\" value=\" " + this .getProjectName () + "\" " );
6263 if (launchSide == Task .Side .CLIENT ) {
63- writer .writeAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.PROGRAM_ARGUMENTS\" value=\" " + this .getClientArgs () + "\" " );
64+ writer .writeSelfEndingAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.PROGRAM_ARGUMENTS\" value=\" " + this .getClientArgs () + "\" " );
6465 }
65- writer .writeAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.PROJECT_ATTR\" value=\" " + this .getProjectName () + "\" " );
66+ writer .writeSelfEndingAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.PROJECT_ATTR\" value=\" " + this .getProjectName () + "\" " );
67+ writer .writeSelfEndingAttribute ("stringAttribute key=\" org.eclipse.jdt.launching.WORKING_DIRECTORY\" value=\" ${project_path}/game\" " );
6668 writer .closeAttribute ("launchConfiguration" );
6769 }
6870}
0 commit comments