Search in sources :

Example 1 with IntellijProjectDescriptor

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

the class WizardConfigurationTest method allJavaProjects.

public List<? extends ProjectDescriptor> allJavaProjects() {
    RuntimeProjectDescriptor _runtimeProject = this.config.getRuntimeProject();
    TestProjectDescriptor _testProject = this.config.getRuntimeProject().getTestProject();
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    TestProjectDescriptor _testProject_1 = this.config.getUiProject().getTestProject();
    IdeProjectDescriptor _ideProject = this.config.getIdeProject();
    IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
    WebProjectDescriptor _webProject = this.config.getWebProject();
    return Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _testProject, _uiProject, _testProject_1, _ideProject, _intellijProject, _webProject));
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) 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) RuntimeProjectDescriptor(org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor) IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) RuntimeProjectDescriptor(org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor) TestProjectDescriptor(org.eclipse.xtext.xtext.wizard.TestProjectDescriptor) WebProjectDescriptor(org.eclipse.xtext.xtext.wizard.WebProjectDescriptor) IdeProjectDescriptor(org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor)

Example 2 with IntellijProjectDescriptor

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

the class WizardConfigurationTest method projectsCanBeBuiltAgainstXtextReleases.

@Test
public void projectsCanBeBuiltAgainstXtextReleases() {
    this.config.setPreferredBuildSystem(BuildSystem.GRADLE);
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
    _intellijProject.setEnabled(true);
    XtextVersion _xtextVersion = new XtextVersion("2.9.0");
    this.config.setXtextVersion(_xtextVersion);
    final String snapshotsRepo = "repositories/snapshots";
    Assert.assertFalse(this.config.getParentProject().pom().getContent().contains(snapshotsRepo));
    Assert.assertFalse(this.config.getParentProject().buildGradle().getContent().contains(snapshotsRepo));
    final String xtextIntellijRelease = "xtext/idea/${xtextVersion}";
    Assert.assertTrue(this.config.getIntellijProject().buildGradle().getContent().contains(xtextIntellijRelease));
    final String releaseUpdateSite = "xtext/updates/releases/2.9.0";
    Assert.assertTrue(this.config.getTargetPlatformProject().target().toString().contains(releaseUpdateSite));
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) XtextVersion(org.eclipse.xtext.util.XtextVersion) Test(org.junit.Test)

Example 3 with IntellijProjectDescriptor

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

the class WizardConfigurationTest method intellijNeedsAGradleBuild.

@Test
public void intellijNeedsAGradleBuild() {
    IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
    _intellijProject.setEnabled(true);
    Assert.assertTrue(this.config.needsGradleBuild());
}
Also used : IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) Test(org.junit.Test)

Example 4 with IntellijProjectDescriptor

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

the class WizardConfigurationTest method projectsCanBeBuiltAgainstXtextNightlies.

@Test
public void projectsCanBeBuiltAgainstXtextNightlies() {
    this.config.setPreferredBuildSystem(BuildSystem.GRADLE);
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
    _intellijProject.setEnabled(true);
    XtextVersion _xtextVersion = new XtextVersion("2.9.0-SNAPSHOT");
    this.config.setXtextVersion(_xtextVersion);
    final String snapshotsRepo = "repositories/snapshots";
    Assert.assertTrue(this.config.getParentProject().pom().getContent().contains(snapshotsRepo));
    Assert.assertTrue(this.config.getParentProject().buildGradle().getContent().contains(snapshotsRepo));
    final String xtextIntellijSnapshots = "/xtext-intellij/lastSuccessfulBuild/";
    Assert.assertTrue(this.config.getIntellijProject().buildGradle().getContent().contains(xtextIntellijSnapshots));
    final String nightlyUpdateSite = "xtext/updates/nightly";
    Assert.assertTrue(this.config.getTargetPlatformProject().target().toString().contains(nightlyUpdateSite));
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) XtextVersion(org.eclipse.xtext.util.XtextVersion) Test(org.junit.Test)

Aggregations

IntellijProjectDescriptor (org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor)4 UiProjectDescriptor (org.eclipse.xtext.xtext.wizard.UiProjectDescriptor)3 Test (org.junit.Test)3 XtextVersion (org.eclipse.xtext.util.XtextVersion)2 IdeProjectDescriptor (org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor)1 ProjectDescriptor (org.eclipse.xtext.xtext.wizard.ProjectDescriptor)1 RuntimeProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor)1 TestProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestProjectDescriptor)1 TestedProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor)1 WebProjectDescriptor (org.eclipse.xtext.xtext.wizard.WebProjectDescriptor)1