490796: don't add plugin.xml to build.properties

Since by default the project wizard for the DSL typically does not
generate a plugin.xml

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=490796
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
This commit is contained in:
Lorenzo Bettini 2016-04-01 15:53:03 +02:00
parent 796021f551
commit 8e54dc86b9

View file

@ -133,6 +133,7 @@ class SimpleProjectWizardFragment2 extends AbstractXtextGeneratorFragment {
import org.eclipse.xtext.builder.EclipseResourceFileSystemAccess2;
import org.eclipse.xtext.generator.IFileSystemAccess;
import org.eclipse.xtext.generator.OutputConfiguration;
import org.eclipse.xtext.ui.util.PluginProjectFactory;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.inject.Inject;
@ -151,6 +152,13 @@ class SimpleProjectWizardFragment2 extends AbstractXtextGeneratorFragment {
protected static final String SRC_GEN_ROOT = "src-gen";
protected final List<String> SRC_FOLDER_LIST = ImmutableList.of(SRC_ROOT, SRC_GEN_ROOT);
@Override
protected PluginProjectFactory createProjectFactory() {
PluginProjectFactory projectFactory = super.createProjectFactory();
projectFactory.setWithPluginXml(false);
return projectFactory;
}
@Override
protected «projectInfoClass.simpleName» getProjectInfo() {
return («projectInfoClass.simpleName») super.getProjectInfo();