Search in sources :

Example 1 with PlainTextFile

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

the class RuntimeProjectDescriptor method getFiles.

@Override
public Iterable<? extends AbstractFile> getFiles() {
    final ArrayList<AbstractFile> files = CollectionLiterals.<AbstractFile>newArrayList();
    Iterable<? extends AbstractFile> _files = super.getFiles();
    Iterables.<AbstractFile>addAll(files, _files);
    PlainTextFile _grammarFile = this.getGrammarFile();
    files.add(_grammarFile);
    PlainTextFile _file = this.file(Outlet.MAIN_JAVA, this.getWorkflowFilePath(), this.workflow());
    files.add(_file);
    PlainTextFile _workflowLaunchConfigFile = this.getWorkflowLaunchConfigFile();
    files.add(_workflowLaunchConfigFile);
    boolean _isEclipsePluginProject = this.getConfig().getRuntimeProject().isEclipsePluginProject();
    if (_isEclipsePluginProject) {
        PlainTextFile _launchConfigFile = this.getLaunchConfigFile();
        files.add(_launchConfigFile);
    }
    boolean _isPlainMavenBuild = this.isPlainMavenBuild();
    if (_isPlainMavenBuild) {
        PlainTextFile _file_1 = this.file(Outlet.ROOT, "jar-with-ecore-model.xml", this.jarDescriptor());
        files.add(_file_1);
    }
    return files;
}
Also used : AbstractFile(org.eclipse.xtext.xtext.wizard.AbstractFile) PlainTextFile(org.eclipse.xtext.xtext.wizard.PlainTextFile)

Example 2 with PlainTextFile

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

the class ParentProjectDescriptor method getFiles.

@Override
public Iterable<? extends AbstractFile> getFiles() {
    final ArrayList<AbstractFile> files = CollectionLiterals.<AbstractFile>newArrayList();
    Iterable<? extends AbstractFile> _files = super.getFiles();
    Iterables.<AbstractFile>addAll(files, _files);
    boolean _needsGradleBuild = this.getConfig().needsGradleBuild();
    if (_needsGradleBuild) {
        PlainTextFile _file = this.file(Outlet.ROOT, "settings.gradle", this.settingsGradle());
        files.add(_file);
        PlainTextFile _file_1 = this.file(Outlet.ROOT, "gradle/source-layout.gradle", this.sourceLayoutGradle());
        files.add(_file_1);
        PlainTextFile _file_2 = this.file(Outlet.ROOT, "gradle/maven-deployment.gradle", this.mavenDeploymentGradle());
        files.add(_file_2);
        boolean _isNeedsGradleWrapper = this.getConfig().isNeedsGradleWrapper();
        if (_isNeedsGradleWrapper) {
            PlainTextFile _file_3 = this.file(Outlet.ROOT, "gradlew", this.loadResource("gradlew/gradlew"), true);
            files.add(_file_3);
            PlainTextFile _file_4 = this.file(Outlet.ROOT, "gradlew.bat", this.loadResource("gradlew/gradlew.bat"));
            files.add(_file_4);
            PlainTextFile _file_5 = this.file(Outlet.ROOT, "gradle/wrapper/gradle-wrapper.properties", this.loadResource("gradlew/gradle-wrapper.properties"));
            files.add(_file_5);
            BinaryFile _binaryFile = this.binaryFile(Outlet.ROOT, "gradle/wrapper/gradle-wrapper.jar", this.getClass().getClassLoader().getResource("gradlew/gradle-wrapper.jar"));
            files.add(_binaryFile);
        }
    }
    return files;
}
Also used : AbstractFile(org.eclipse.xtext.xtext.wizard.AbstractFile) PlainTextFile(org.eclipse.xtext.xtext.wizard.PlainTextFile) BinaryFile(org.eclipse.xtext.xtext.wizard.BinaryFile)

Example 3 with PlainTextFile

use of org.eclipse.xtext.xtext.wizard.PlainTextFile 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

PlainTextFile (org.eclipse.xtext.xtext.wizard.PlainTextFile)3 AbstractFile (org.eclipse.xtext.xtext.wizard.AbstractFile)2 BinaryFile (org.eclipse.xtext.xtext.wizard.BinaryFile)1 GradleBuildFile (org.eclipse.xtext.xtext.wizard.GradleBuildFile)1 PomFile (org.eclipse.xtext.xtext.wizard.PomFile)1 TextFile (org.eclipse.xtext.xtext.wizard.TextFile)1