@@ -54,15 +54,17 @@ public void toXML(XMLWriter writer) throws IOException {
54
54
writer .writeAttribute ("listEntry value=\" org.eclipse.debug.ui.launchGroup.run\" " );
55
55
writer .writeAttribute ("listEntry value=\" org.eclipse.debug.ui.launchGroup.debug\" " );
56
56
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 () + "\" " );
62
63
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 () + "\" " );
64
65
}
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\" " );
66
68
writer .closeAttribute ("launchConfiguration" );
67
69
}
68
70
}
0 commit comments