Search in sources :

Example 1 with PomFile

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

the class RuntimeProjectDescriptor method pom.

@Override
public PomFile pom() {
    PomFile _pom = super.pom();
    final Procedure1<PomFile> _function = (PomFile it) -> {
        String _xifexpression = null;
        boolean _isEclipsePluginProject = this.isEclipsePluginProject();
        if (_isEclipsePluginProject) {
            _xifexpression = "eclipse-plugin";
        } else {
            _xifexpression = "jar";
        }
        it.setPackaging(_xifexpression);
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<build>");
        _builder.newLine();
        {
            if (((!this.isEclipsePluginProject()) && Objects.equal(this.getConfig().getSourceLayout(), SourceLayout.PLAIN))) {
                _builder.append("\t");
                _builder.append("<sourceDirectory>");
                String _sourceFolder = this.sourceFolder(Outlet.MAIN_JAVA);
                _builder.append(_sourceFolder, "\t");
                _builder.append("</sourceDirectory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("<resources>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("<resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<directory>");
                String _sourceFolder_1 = this.sourceFolder(Outlet.MAIN_RESOURCES);
                _builder.append(_sourceFolder_1, "\t\t\t");
                _builder.append("</directory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.java</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.xtend</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.xtext</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.mwe2</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("</excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("</resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</resources>");
                _builder.newLine();
            }
        }
        _builder.append("\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.codehaus.mojo</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>exec-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<version>1.4.0</version>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<executions>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<execution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<id>mwe2Launcher</id>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<phase>generate-sources</phase>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<goal>java</goal>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</execution>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</executions>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<mainClass>org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher</mainClass>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<arguments>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<argument>/${project.basedir}/");
        String _sourceFolder_2 = this.sourceFolder(Outlet.MAIN_JAVA);
        _builder.append(_sourceFolder_2, "\t\t\t\t\t");
        _builder.append("/");
        String _workflowFilePath = this.getWorkflowFilePath();
        _builder.append(_workflowFilePath, "\t\t\t\t\t");
        _builder.append("</argument>");
        _builder.newLineIfNotEmpty();
        _builder.append("\t\t\t\t\t");
        _builder.append("<argument>-p</argument>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<argument>rootPath=/${project.basedir}/..</argument>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</arguments>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<classpathScope>compile</classpathScope>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<includePluginDependencies>true</includePluginDependencies>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<cleanupDaemonThreads>false</cleanupDaemonThreads><!-- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=475098#c3 -->");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        {
            boolean _needsTychoBuild = this.getConfig().needsTychoBuild();
            if (_needsTychoBuild) {
                _builder.append("\t\t\t");
                _builder.append("<dependencies>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.emf</groupId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<artifactId>org.eclipse.emf.mwe2.launch</artifactId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<version>");
                String _mweVersion = this.getConfig().getXtextVersion().getMweVersion();
                _builder.append(_mweVersion, "\t\t\t\t\t");
                _builder.append("</version>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.xtext</groupId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<artifactId>org.eclipse.xtext.common.types</artifactId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<version>${xtextVersion}</version>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.xtext</groupId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<artifactId>org.eclipse.xtext.xtext.generator</artifactId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<version>${xtextVersion}</version>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.xtext</groupId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<artifactId>org.eclipse.xtext.xbase</artifactId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<version>${xtextVersion}</version>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.xtext</groupId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<artifactId>xtext-antlr-generator</artifactId>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("\t\t");
                _builder.append("<version>");
                String _antlrGeneratorVersion = this.getConfig().getXtextVersion().getAntlrGeneratorVersion();
                _builder.append(_antlrGeneratorVersion, "\t\t\t\t\t");
                _builder.append("</version>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t\t");
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t\t\t");
                _builder.append("</dependencies>");
                _builder.newLine();
            }
        }
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.eclipse.xtend</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>xtend-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.apache.maven.plugins</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>maven-clean-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<filesets combine.children=\"append\">");
        _builder.newLine();
        {
            IdeProjectDescriptor _ideProject = this.getConfig().getIdeProject();
            UiProjectDescriptor _uiProject = this.getConfig().getUiProject();
            WebProjectDescriptor _webProject = this.getConfig().getWebProject();
            for (final ProjectDescriptor p : Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(this, _ideProject, _uiProject, _webProject))) {
                {
                    boolean _isEnabled = p.isEnabled();
                    if (_isEnabled) {
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<fileset>");
                        _builder.newLine();
                        _builder.append("\t\t\t\t\t");
                        _builder.append("\t");
                        _builder.append("<directory>${basedir}/../");
                        String _name = p.getName();
                        _builder.append(_name, "\t\t\t\t\t\t");
                        _builder.append("/");
                        String _sourceFolder_3 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
                        _builder.append(_sourceFolder_3, "\t\t\t\t\t\t");
                        _builder.append("/</directory>");
                        _builder.newLineIfNotEmpty();
                        _builder.append("\t\t\t\t\t");
                        _builder.append("\t");
                        _builder.append("<includes>");
                        _builder.newLine();
                        _builder.append("\t\t\t\t\t");
                        _builder.append("\t\t");
                        _builder.append("<include>**/*</include>");
                        _builder.newLine();
                        _builder.append("\t\t\t\t\t");
                        _builder.append("\t");
                        _builder.append("</includes>");
                        _builder.newLine();
                        _builder.append("\t\t\t\t\t");
                        _builder.append("</fileset>");
                        _builder.newLine();
                        {
                            if ((p instanceof TestedProjectDescriptor)) {
                                {
                                    boolean _isEnabled_1 = ((TestedProjectDescriptor) p).getTestProject().isEnabled();
                                    if (_isEnabled_1) {
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("<fileset>");
                                        _builder.newLine();
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("\t");
                                        _builder.append("<directory>${basedir}/../");
                                        String _xifexpression_1 = null;
                                        boolean _isInlined = ((TestedProjectDescriptor) p).getTestProject().isInlined();
                                        if (_isInlined) {
                                            _xifexpression_1 = ((TestedProjectDescriptor) p).getName();
                                        } else {
                                            _xifexpression_1 = ((TestedProjectDescriptor) p).getTestProject().getName();
                                        }
                                        _builder.append(_xifexpression_1, "\t\t\t\t\t\t");
                                        _builder.append("/");
                                        String _sourceFolder_4 = this.sourceFolder(Outlet.TEST_SRC_GEN);
                                        _builder.append(_sourceFolder_4, "\t\t\t\t\t\t");
                                        _builder.append("/</directory>");
                                        _builder.newLineIfNotEmpty();
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("\t");
                                        _builder.append("<includes>");
                                        _builder.newLine();
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("\t\t");
                                        _builder.append("<include>**/*</include>");
                                        _builder.newLine();
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("\t");
                                        _builder.append("</includes>");
                                        _builder.newLine();
                                        _builder.append("\t\t\t\t\t");
                                        _builder.append("</fileset>");
                                        _builder.newLine();
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        _builder.append("\t\t\t\t\t");
        _builder.append("<fileset>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<directory>${basedir}/model/generated/</directory>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</fileset>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</filesets>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        {
            boolean _isEclipsePluginProject_1 = this.isEclipsePluginProject();
            boolean _not = (!_isEclipsePluginProject_1);
            if (_not) {
                _builder.append("\t\t");
                _builder.append("<plugin>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<groupId>org.codehaus.mojo</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<artifactId>build-helper-maven-plugin</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<version>1.9.1</version>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("<execution>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<id>add-source</id>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<phase>initialize</phase>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<goal>add-source</goal>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<goal>add-resource</goal>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<sources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("<source>");
                String _sourceFolder_5 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
                _builder.append(_sourceFolder_5, "\t\t\t\t\t\t\t");
                _builder.append("</source>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("</sources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<resources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("<resource>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<directory>");
                String _sourceFolder_6 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
                _builder.append(_sourceFolder_6, "\t\t\t\t\t\t\t\t");
                _builder.append("</directory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<excludes>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<exclude>**/*.java</exclude>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<exclude>**/*.g</exclude>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("</excludes>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("</resource>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("</resources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("</execution>");
                _builder.newLine();
                {
                    boolean _isInlined_1 = this.testProject.isInlined();
                    if (_isInlined_1) {
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<id>add-test-source</id>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<phase>initialize</phase>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<goal>add-test-source</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<goal>add-test-resource</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<sources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<source>");
                        String _sourceFolder_7 = this.sourceFolder(Outlet.TEST_SRC_GEN);
                        _builder.append(_sourceFolder_7, "\t\t\t\t\t\t\t");
                        _builder.append("</source>");
                        _builder.newLineIfNotEmpty();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</sources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<resources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<resource>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<directory>");
                        String _sourceFolder_8 = this.sourceFolder(Outlet.TEST_SRC_GEN);
                        _builder.append(_sourceFolder_8, "\t\t\t\t\t\t\t\t");
                        _builder.append("</directory>");
                        _builder.newLineIfNotEmpty();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<excludes>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>**/*.java</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("</excludes>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</resource>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</resources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</execution>");
                        _builder.newLine();
                    }
                }
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("</executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("</plugin>");
                _builder.newLine();
                {
                    boolean _isPlainMavenBuild = this.isPlainMavenBuild();
                    if (_isPlainMavenBuild) {
                        _builder.append("\t\t");
                        _builder.append("<plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<artifactId>maven-assembly-plugin</artifactId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<version>3.1.0</version>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<descriptors>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<descriptor>jar-with-ecore-model.xml</descriptor>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</descriptors>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<appendAssemblyId>false</appendAssemblyId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<id>make-assembly</id>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<phase>package</phase>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<goal>single</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("</plugin>");
                        _builder.newLine();
                    }
                }
            }
        }
        _builder.append("\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("<pluginManagement>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<groupId>org.eclipse.m2e</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<artifactId>lifecycle-mapping</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<version>1.0.0</version>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<lifecycleMappingMetadata>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<pluginExecutions>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("<pluginExecution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<pluginExecutionFilter>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("org.codehaus.mojo");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("exec-maven-plugin");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<versionRange>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("[1.2.1,)");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</versionRange>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("<goal>java</goal>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("</pluginExecutionFilter>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<action>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<ignore></ignore>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("</action>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("</pluginExecution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("</pluginExecutions>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</lifecycleMappingMetadata>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("</pluginManagement>");
        _builder.newLine();
        _builder.append("</build>");
        _builder.newLine();
        it.setBuildSection(_builder.toString());
    };
    return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) RuntimeTestProjectDescriptor(org.eclipse.xtext.xtext.wizard.RuntimeTestProjectDescriptor) WebProjectDescriptor(org.eclipse.xtext.xtext.wizard.WebProjectDescriptor) TestProjectDescriptor(org.eclipse.xtext.xtext.wizard.TestProjectDescriptor) TestedProjectDescriptor(org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor) ProjectDescriptor(org.eclipse.xtext.xtext.wizard.ProjectDescriptor) IdeProjectDescriptor(org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor) UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) PomFile(org.eclipse.xtext.xtext.wizard.PomFile) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation) WebProjectDescriptor(org.eclipse.xtext.xtext.wizard.WebProjectDescriptor) IdeProjectDescriptor(org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor) TestedProjectDescriptor(org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor)

Example 2 with PomFile

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

the class UiProjectDescriptor method pom.

@Override
public PomFile pom() {
    PomFile _pom = super.pom();
    final Procedure1<PomFile> _function = (PomFile it) -> {
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<build>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.eclipse.xtend</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>xtend-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("</build>");
        _builder.newLine();
        it.setBuildSection(_builder.toString());
        it.setPackaging("eclipse-plugin");
    };
    return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
Also used : PomFile(org.eclipse.xtext.xtext.wizard.PomFile) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation)

Example 3 with PomFile

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

the class WebProjectDescriptor method pom.

@Override
public PomFile pom() {
    PomFile _pom = super.pom();
    final Procedure1<PomFile> _function = (PomFile it) -> {
        it.setPackaging("war");
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<build>");
        _builder.newLine();
        {
            SourceLayout _sourceLayout = this.getConfig().getSourceLayout();
            boolean _equals = Objects.equal(_sourceLayout, SourceLayout.PLAIN);
            if (_equals) {
                _builder.append("\t");
                _builder.append("<sourceDirectory>");
                String _sourceFolder = this.sourceFolder(Outlet.MAIN_JAVA);
                _builder.append(_sourceFolder, "\t");
                _builder.append("</sourceDirectory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("<resources>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("<resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<directory>");
                String _sourceFolder_1 = this.sourceFolder(Outlet.MAIN_RESOURCES);
                _builder.append(_sourceFolder_1, "\t\t\t");
                _builder.append("</directory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.java</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.xtend</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("</excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("</resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</resources>");
                _builder.newLine();
            }
        }
        _builder.append("\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.eclipse.xtend</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>xtend-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>maven-war-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<version>3.2.0</version>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<warSourceDirectory>");
        String _sourceFolder_2 = this.sourceFolder(Outlet.WEBAPP);
        _builder.append(_sourceFolder_2, "\t\t\t\t");
        _builder.append("</warSourceDirectory>");
        _builder.newLineIfNotEmpty();
        _builder.append("\t\t\t\t");
        _builder.append("<failOnMissingWebXml>false</failOnMissingWebXml>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.eclipse.jetty</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>jetty-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<version>9.2.13.v20150730</version>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<webAppSourceDirectory>");
        String _sourceFolder_3 = this.sourceFolder(Outlet.WEBAPP);
        _builder.append(_sourceFolder_3, "\t\t\t\t");
        _builder.append("</webAppSourceDirectory>");
        _builder.newLineIfNotEmpty();
        _builder.append("\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.codehaus.mojo</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>build-helper-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<version>1.9.1</version>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<executions>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<execution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<id>add-source</id>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<phase>initialize</phase>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<goal>add-source</goal>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<goal>add-resource</goal>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<sources>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("<source>");
        String _sourceFolder_4 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
        _builder.append(_sourceFolder_4, "\t\t\t\t\t\t\t");
        _builder.append("</source>");
        _builder.newLineIfNotEmpty();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("</sources>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<resources>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("<resource>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<directory>");
        String _sourceFolder_5 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
        _builder.append(_sourceFolder_5, "\t\t\t\t\t\t\t\t");
        _builder.append("</directory>");
        _builder.newLineIfNotEmpty();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<excludes>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<exclude>**/*.java</exclude>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("</excludes>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("</resource>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("</resources>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</execution>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</executions>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("</build>");
        _builder.newLine();
        it.setBuildSection(_builder.toString());
    };
    return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
Also used : SourceLayout(org.eclipse.xtext.xtext.wizard.SourceLayout) PomFile(org.eclipse.xtext.xtext.wizard.PomFile) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation)

Example 4 with PomFile

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

the class IdeProjectDescriptor method pom.

@Override
public PomFile pom() {
    PomFile _pom = super.pom();
    final Procedure1<PomFile> _function = (PomFile it) -> {
        StringConcatenation _builder = new StringConcatenation();
        {
            if (((!Objects.equal(this.getConfig().getLanguageServer(), LanguageServer.NONE)) && this.isEclipsePluginProject())) {
                _builder.append("<dependencies>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<groupId>log4j</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<artifactId>log4j</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<version>1.2.16</version>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<groupId>org.eclipse.lsp4j</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<artifactId>org.eclipse.lsp4j</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<version>0.2.1</version>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<groupId>org.ow2.asm</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<artifactId>asm</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<version>6.0</version>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<groupId>org.ow2.asm</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<artifactId>asm-commons</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<version>6.0</version>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("<dependency>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<groupId>org.ow2.asm</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<artifactId>asm-tree</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("<version>6.0</version>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</dependency>");
                _builder.newLine();
                _builder.append("</dependencies>");
                _builder.newLine();
            }
        }
        _builder.append("<build>");
        _builder.newLine();
        {
            if (((!this.isEclipsePluginProject()) && Objects.equal(this.getConfig().getSourceLayout(), SourceLayout.PLAIN))) {
                _builder.append("\t");
                _builder.append("<sourceDirectory>");
                String _sourceFolder = this.sourceFolder(Outlet.MAIN_JAVA);
                _builder.append(_sourceFolder, "\t");
                _builder.append("</sourceDirectory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("<resources>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("<resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<directory>");
                String _sourceFolder_1 = this.sourceFolder(Outlet.MAIN_RESOURCES);
                _builder.append(_sourceFolder_1, "\t\t\t");
                _builder.append("</directory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("<excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.java</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t\t");
                _builder.append("<exclude>**/*.xtend</exclude>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t\t");
                _builder.append("</excludes>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("\t");
                _builder.append("</resource>");
                _builder.newLine();
                _builder.append("\t");
                _builder.append("</resources>");
                _builder.newLine();
            }
        }
        _builder.append("\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<groupId>org.eclipse.xtend</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<artifactId>xtend-maven-plugin</artifactId>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        {
            boolean _isEclipsePluginProject = this.isEclipsePluginProject();
            boolean _not = (!_isEclipsePluginProject);
            if (_not) {
                _builder.append("\t\t");
                _builder.append("<plugin>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<groupId>org.codehaus.mojo</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<artifactId>build-helper-maven-plugin</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<version>1.9.1</version>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("<execution>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<id>add-source</id>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<phase>initialize</phase>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<goal>add-source</goal>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<goal>add-resource</goal>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<sources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("<source>");
                String _sourceFolder_2 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
                _builder.append(_sourceFolder_2, "\t\t\t\t\t\t\t");
                _builder.append("</source>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("</sources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<resources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("<resource>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<directory>");
                String _sourceFolder_3 = this.sourceFolder(Outlet.MAIN_SRC_GEN);
                _builder.append(_sourceFolder_3, "\t\t\t\t\t\t\t\t");
                _builder.append("</directory>");
                _builder.newLineIfNotEmpty();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<excludes>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<exclude>**/*.java</exclude>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<exclude>**/*.g</exclude>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("</excludes>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("</resource>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("</resources>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("</execution>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("</executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("</plugin>");
                _builder.newLine();
            }
        }
        {
            LanguageServer _languageServer = this.getConfig().getLanguageServer();
            boolean _notEquals = (!Objects.equal(_languageServer, LanguageServer.NONE));
            if (_notEquals) {
                {
                    boolean _isEclipsePluginProject_1 = this.isEclipsePluginProject();
                    if (_isEclipsePluginProject_1) {
                        _builder.append("\t\t");
                        _builder.append("<plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<groupId>org.eclipse.tycho</groupId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<artifactId>target-platform-configuration</artifactId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<pomDependencies>consider</pomDependencies>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("</plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("<plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<groupId>org.apache.maven.plugins</groupId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<artifactId>maven-dependency-plugin</artifactId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<version>3.0.1</version>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<id>copy-dependencies</id>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<phase>package</phase>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<goal>copy-dependencies</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<outputDirectory>${project.build.directory}/libs</outputDirectory>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<overWriteReleases>false</overWriteReleases>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<overWriteSnapshots>false</overWriteSnapshots>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<overWriteIfNewer>true</overWriteIfNewer>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<excludeTransitive>true</excludeTransitive>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<excludeArtifactIds>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("com.ibm.icu,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.apache.ant,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.apache.commons.lang,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.apache.commons.logging,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.commands,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.contenttype,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.expressions,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.filesystem,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.jobs,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.resources,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.runtime,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.core.variables,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.debug.core,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.codegen.ecore,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.codegen,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.mwe.core,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.mwe.utils,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.mwe2.lib,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.emf.mwe2.runtime,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.equinox.app,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.equinox.preferences,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.equinox.registry,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.jdt.core,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.jdt.debug,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.jdt.launching,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.text,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.xtend.typesystem.emf,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("org.eclipse.xtend,");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("</excludeArtifactIds>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("</plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("<plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<groupId>com.googlecode.addjars-maven-plugin</groupId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<artifactId>addjars-maven-plugin</artifactId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<version>1.0.5</version>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<phase>package</phase>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<goal>add-jars</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<resources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<resource>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t\t");
                        _builder.append("<directory>${project.build.directory}/libs</directory>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("</resource>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("</resources>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("</plugin>");
                        _builder.newLine();
                    }
                }
                {
                    LanguageServer _languageServer_1 = this.getConfig().getLanguageServer();
                    boolean _equals = Objects.equal(_languageServer_1, LanguageServer.FATJAR);
                    if (_equals) {
                        _builder.append("\t\t");
                        _builder.append("<plugin>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<groupId>org.apache.maven.plugins</groupId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<artifactId>maven-shade-plugin</artifactId>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<version>3.0.0</version>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<transformers>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<transformer");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("implementation=\"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer\">");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</transformer>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<transformer");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("implementation=\"org.apache.maven.plugins.shade.resource.AppendingTransformer\">");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<resource>plugin.properties</resource>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</transformer>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</transformers>");
                        _builder.newLine();
                        {
                            boolean _isEclipsePluginProject_2 = this.isEclipsePluginProject();
                            if (_isEclipsePluginProject_2) {
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<artifactSet>");
                                _builder.newLine();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t");
                                _builder.append("<excludes><!-- avoid duplicate inclusion due to addjars plugin -->");
                                _builder.newLine();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name = this.getConfig().getIdeProject().getName();
                                _builder.append(_name, "\t\t\t\t\t\t");
                                _builder.append("-org.eclipse.lsp4j*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_1 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_1, "\t\t\t\t\t\t");
                                _builder.append("-org.eclipse.xtext.xbase.lib*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_2 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_2, "\t\t\t\t\t\t");
                                _builder.append("-org.eclipse.xtend.lib*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_3 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_3, "\t\t\t\t\t\t");
                                _builder.append("-com.google.guava*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_4 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_4, "\t\t\t\t\t\t");
                                _builder.append("-asm*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_5 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_5, "\t\t\t\t\t\t");
                                _builder.append("-log4j*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_6 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_6, "\t\t\t\t\t\t");
                                _builder.append("-org.objectweb.asm*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("<exclude>*:");
                                String _name_7 = this.getConfig().getIdeProject().getName();
                                _builder.append(_name_7, "\t\t\t\t\t\t");
                                _builder.append("-org.apache.log4j*</exclude>");
                                _builder.newLineIfNotEmpty();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("\t");
                                _builder.append("</excludes>");
                                _builder.newLine();
                                _builder.append("\t\t");
                                _builder.append("\t\t");
                                _builder.append("</artifactSet>");
                                _builder.newLine();
                            }
                        }
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<filters>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<filter>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<artifact>*:*</artifact>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<excludes>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>META-INF/INDEX.LIST</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>META-INF/*.SF</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>META-INF/*.DSA</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>META-INF/*.RSA</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>.options</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>.api_description</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>*.profile</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>*.html</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>about.*</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>about_files/*</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>plugin.xml</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>modeling32.png</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>systembundle.properties</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>profile.list</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>**/*._trace</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>**/*.g</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>**/*.mwe2</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t\t");
                        _builder.append("<exclude>**/*.xtext</exclude>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("</excludes>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</filter>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</filters>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<shadedArtifactAttached>true</shadedArtifactAttached>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<shadedClassifierName>ls</shadedClassifierName>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<minimizeJar>false</minimizeJar>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</configuration>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("<executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("<execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<phase>package</phase>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("<goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t\t");
                        _builder.append("<goal>shade</goal>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t\t");
                        _builder.append("</goals>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t\t");
                        _builder.append("</execution>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("\t");
                        _builder.append("</executions>");
                        _builder.newLine();
                        _builder.append("\t\t");
                        _builder.append("</plugin>");
                        _builder.newLine();
                    }
                }
            }
        }
        {
            LanguageServer _languageServer_2 = this.getConfig().getLanguageServer();
            boolean _equals_1 = Objects.equal(_languageServer_2, LanguageServer.APP);
            if (_equals_1) {
                _builder.append("\t\t");
                _builder.append("<plugin>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<groupId>org.codehaus.mojo</groupId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<artifactId>appassembler-maven-plugin</artifactId>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<version>1.10</version>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("<executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("<execution>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<phase>package</phase>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<goal>assemble</goal>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</goals>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("<configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<assembleDirectory>${project.build.directory}/languageserver</assembleDirectory>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<repositoryLayout>flat</repositoryLayout>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<useWildcardClassPath>true</useWildcardClassPath>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<!-- uncomment to enable remote debugging");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<extraJvmArguments>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000</extraJvmArguments>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("-->");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("<programs>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("<program>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<id>mydsl-ls</id>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<mainClass>org.eclipse.xtext.ide.server.ServerLauncher</mainClass>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<!-- uncomment to enable options");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("<commandLineArguments>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<commandLineArgument>-trace</commandLineArgument>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<commandLineArgument>-log</commandLineArgument>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t\t");
                _builder.append("<commandLineArgument>-noValidate</commandLineArgument>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("</commandLineArguments>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t\t");
                _builder.append("-->");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t\t");
                _builder.append("</program>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t\t");
                _builder.append("</programs>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t\t");
                _builder.append("</configuration>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t\t");
                _builder.append("</execution>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("\t");
                _builder.append("</executions>");
                _builder.newLine();
                _builder.append("\t\t");
                _builder.append("</plugin>");
                _builder.newLine();
            }
        }
        _builder.append("\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("</build>");
        _builder.newLine();
        it.setBuildSection(_builder.toString());
        String _xifexpression = null;
        boolean _isEclipsePluginProject_3 = this.isEclipsePluginProject();
        if (_isEclipsePluginProject_3) {
            _xifexpression = "eclipse-plugin";
        } else {
            _xifexpression = "jar";
        }
        it.setPackaging(_xifexpression);
    };
    return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
Also used : LanguageServer(org.eclipse.xtext.xtext.wizard.LanguageServer) PomFile(org.eclipse.xtext.xtext.wizard.PomFile) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation)

Example 5 with PomFile

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

the class P2RepositoryProject method pom.

@Override
public PomFile pom() {
    PomFile _pom = super.pom();
    final Procedure1<PomFile> _function = (PomFile it) -> {
        it.setPackaging("eclipse-repository");
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("<build>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("<pluginManagement>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("<plugins>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("<plugin>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<groupId>org.eclipse.m2e</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<artifactId>lifecycle-mapping</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<version>1.0.0</version>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("<configuration>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("<lifecycleMappingMetadata>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("<pluginExecutions>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("<pluginExecution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<pluginExecutionFilter>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("org.apache.maven.plugins");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</groupId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("maven-clean-plugin");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</artifactId>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<versionRange>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("[2.5,)");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</versionRange>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t\t");
        _builder.append("<goal>clean</goal>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("</goals>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("</pluginExecutionFilter>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("<action>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t\t");
        _builder.append("<ignore></ignore>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t\t");
        _builder.append("</action>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t\t");
        _builder.append("</pluginExecution>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t\t");
        _builder.append("</pluginExecutions>");
        _builder.newLine();
        _builder.append("\t\t\t\t\t");
        _builder.append("</lifecycleMappingMetadata>");
        _builder.newLine();
        _builder.append("\t\t\t\t");
        _builder.append("</configuration>");
        _builder.newLine();
        _builder.append("\t\t\t");
        _builder.append("</plugin>");
        _builder.newLine();
        _builder.append("\t\t");
        _builder.append("</plugins>");
        _builder.newLine();
        _builder.append("\t");
        _builder.append("</pluginManagement>");
        _builder.newLine();
        _builder.append("</build>");
        _builder.newLine();
        it.setBuildSection(_builder.toString());
    };
    return ObjectExtensions.<PomFile>operator_doubleArrow(_pom, _function);
}
Also used : PomFile(org.eclipse.xtext.xtext.wizard.PomFile) StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation)

Aggregations

PomFile (org.eclipse.xtext.xtext.wizard.PomFile)12 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)7 TestProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestProjectDescriptor)3 ProjectDescriptor (org.eclipse.xtext.xtext.wizard.ProjectDescriptor)2 UiProjectDescriptor (org.eclipse.xtext.xtext.wizard.UiProjectDescriptor)2 Test (org.junit.Test)2 Charset (java.nio.charset.Charset)1 XtextVersion (org.eclipse.xtext.util.XtextVersion)1 AbstractFile (org.eclipse.xtext.xtext.wizard.AbstractFile)1 GradleBuildFile (org.eclipse.xtext.xtext.wizard.GradleBuildFile)1 IdeProjectDescriptor (org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor)1 LanguageServer (org.eclipse.xtext.xtext.wizard.LanguageServer)1 Outlet (org.eclipse.xtext.xtext.wizard.Outlet)1 PlainTextFile (org.eclipse.xtext.xtext.wizard.PlainTextFile)1 ProjectLayout (org.eclipse.xtext.xtext.wizard.ProjectLayout)1 RuntimeTestProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeTestProjectDescriptor)1 SourceLayout (org.eclipse.xtext.xtext.wizard.SourceLayout)1 TestedProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor)1 TextFile (org.eclipse.xtext.xtext.wizard.TextFile)1 WebProjectDescriptor (org.eclipse.xtext.xtext.wizard.WebProjectDescriptor)1