eclipse plugin: don't create an auxiliary directory for 'User addons' project
This commit is contained in:
parent
c2ca79b365
commit
8a48766927
2 changed files with 5 additions and 6 deletions
|
@ -151,9 +151,6 @@ public class WorkspaceUtils
|
|||
if (new File(userDir + Path.SEPARATOR + "data/add-ons/.project").exists())
|
||||
new File(userDir + Path.SEPARATOR + "data/add-ons/.project").delete();
|
||||
|
||||
if (new File(userDir + Path.SEPARATOR + "data/add-ons/.ignore").exists())
|
||||
new File(userDir + Path.SEPARATOR + "data/add-ons/.ignore").delete();
|
||||
|
||||
description.setLocation(new Path(userDir + Path.SEPARATOR + "data/add-ons/"));
|
||||
proj.create(description, null);
|
||||
proj.open(null);
|
||||
|
@ -165,8 +162,9 @@ public class WorkspaceUtils
|
|||
// add the build.xml file
|
||||
ArrayList<ReplaceableParameter> param = new ArrayList<ReplaceableParameter>();
|
||||
param.add(new ReplaceableParameter("$$project_name", "User Addons"));
|
||||
param.add(new ReplaceableParameter("$$project_dir_name", ""));
|
||||
ResourceUtils.createFile(proj, "build.xml",
|
||||
TemplateProvider.getInstance().getProcessedTemplate("build_xml", param));
|
||||
TemplateProvider.getInstance().getProcessedTemplate("build_xml", param), true);
|
||||
|
||||
|
||||
// we need to skip the already created projects (if any) in the addons directory
|
||||
|
@ -177,7 +175,7 @@ public class WorkspaceUtils
|
|||
continue;
|
||||
skipList += (project.getLocation().toOSString() + "\n");
|
||||
}
|
||||
ResourceUtils.createFile(proj, ".ignore",skipList);
|
||||
ResourceUtils.createFile(proj, ".ignore",skipList, true);
|
||||
}
|
||||
GUIUtils.showMessageBox(WorkspaceUtils.getWorkbenchWindow(),
|
||||
"Workspace was set up successfully.");
|
||||
|
|
|
@ -105,7 +105,7 @@ public class CampaignNewWizard extends Wizard implements INewWizard
|
|||
|
||||
for (Pair<String, String> file : files)
|
||||
{
|
||||
ResourceUtils.createFile(currentProject, file.First, prepareTemplate(file.Second));
|
||||
ResourceUtils.createFile(currentProject, file.First, prepareTemplate(file.Second), true);
|
||||
monitor.worked(1);
|
||||
}
|
||||
for (String dir : dirs)
|
||||
|
@ -143,6 +143,7 @@ public class CampaignNewWizard extends Wizard implements INewWizard
|
|||
params.add(new ReplaceableParameter("$$first_scenario", page2_.getFirstScenario()));
|
||||
|
||||
params.add(new ReplaceableParameter("$$project_name", page0_.getProjectName()));
|
||||
params.add(new ReplaceableParameter("$$project_dir_name", page0_.getProjectName()));
|
||||
params.add(new ReplaceableParameter("$$type", page1_.isMultiplayer() ? "campaign_mp" : "campaign"));
|
||||
|
||||
return TemplateProvider.getInstance().getProcessedTemplate(templateName, params);
|
||||
|
|
Loading…
Add table
Reference in a new issue