Search in sources :

Example 6 with GradleBuildFile

use of org.eclipse.xtext.xtext.wizard.GradleBuildFile in project xtext-core by eclipse.

the class ProjectDescriptor method getFiles.

public Iterable<? extends AbstractFile> getFiles() {
    final List<TextFile> files = CollectionLiterals.<TextFile>newArrayList();
    boolean _isEclipsePluginProject = this.isEclipsePluginProject();
    if (_isEclipsePluginProject) {
        PlainTextFile _file = this.file(Outlet.META_INF, "MANIFEST.MF", this.manifest());
        files.add(_file);
        PlainTextFile _file_1 = this.file(Outlet.ROOT, "build.properties", this.buildProperties());
        files.add(_file_1);
    }
    boolean _isEclipseFeatureProject = this.isEclipseFeatureProject();
    if (_isEclipseFeatureProject) {
        PlainTextFile _file_2 = this.file(Outlet.ROOT, "build.properties", this.buildProperties());
        files.add(_file_2);
    }
    if ((this.config.needsGradleBuild() && this.isPartOfGradleBuild())) {
        GradleBuildFile _buildGradle = this.buildGradle();
        files.add(_buildGradle);
    }
    if ((this.config.needsMavenBuild() && this.isPartOfMavenBuild())) {
        PomFile _pom = this.pom();
        files.add(_pom);
    }
    return files;
}
Also used : GradleBuildFile(org.eclipse.xtext.xtext.wizard.GradleBuildFile) PlainTextFile(org.eclipse.xtext.xtext.wizard.PlainTextFile) PomFile(org.eclipse.xtext.xtext.wizard.PomFile) TextFile(org.eclipse.xtext.xtext.wizard.TextFile) PlainTextFile(org.eclipse.xtext.xtext.wizard.PlainTextFile)

Aggregations

GradleBuildFile (org.eclipse.xtext.xtext.wizard.GradleBuildFile)6 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)5 XtextVersion (org.eclipse.xtext.util.XtextVersion)1 LanguageServer (org.eclipse.xtext.xtext.wizard.LanguageServer)1 PlainTextFile (org.eclipse.xtext.xtext.wizard.PlainTextFile)1 PomFile (org.eclipse.xtext.xtext.wizard.PomFile)1 TextFile (org.eclipse.xtext.xtext.wizard.TextFile)1