Skip to content

Commit

Permalink
Xpect-eclipseGH-261: Errors after oomph setup + manual setup (#1)
Browse files Browse the repository at this point in the history
* eclipseGH-261: Fix source paths and readme

* Xpect-eclipseGH-216: Include xtend-gen in repo but without content

* Xpect-eclipseGH-216: Fix gitignore

* Xpect-eclipseGH-216: Include src-gen folders in repo but without content

* Xpect-eclipseGH-216: Remove generated code

* Xpect-eclipseGH-216: Improve readme

* Xpect-eclipseGH-216: Change xpect sdk version to 0.0.0

* Xpect-eclipseGH-216: Reverse xpect sdk version

* Xpect-eclipseGH-216: Refactoring oomph setup part 1

* Xpect-eclipseGH-216: Move setup file

* Xpect-eclipseGH-216: Activate locatedNestedProjects flag

* Xpect-eclipseGH-216: Update xpect setup

* Xpect-eclipseGH-216: Launch other mwe workflows

* Xpect-eclipseGH-216: Default to neon

* Xpect-eclipseGH-216: build before launching mwe2

* Xpect-eclipseGH-216: Remove temp branch stream

* Xpect-eclipseGH-216: Minor

* Xpect-eclipseGH-216: And temp stream for testing

* Xpect-eclipseGH-216: Remove test stream
  • Loading branch information
Quang Minh Tran authored Jul 13, 2017
1 parent 4bc9fb5 commit a43f18a
Show file tree
Hide file tree
Showing 23 changed files with 84 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*.class
*.jar
bin
xtend-gen
target
.DS_Store
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Go to http://www.xpect-tests.org (and look for an Eclipse update-site).

**The Fast Way:** Download [OOMPH](https://wiki.eclipse.org/Eclipse_Oomph_Installer) and point it to [Xpect.setup](https://github.com/meysholdt/Xpect/raw/master/org.xpect.releng/Xpect.setup).

**The Manual Way:** Prerequisite: Java 1.6 or newer; Eclipse 3.8 or 4.2 or newer; Xtext 2.4.
**The Manual Way:** Prerequisite: Java 1.6 or newer; Eclipse 3.8 or 4.2 or newer; Xtext 2.9.2.

1. Clone https://github.com/meysholdt/Xpect (this repository)
2. Import all projects into your Eclipse workspace.
3. Set target platform /org.xpect.releng/target-platforms/org.xpect.target.target
4. Run /org.xpect/src/org/xpect/GenerateXpect.mwe2. Now your projects should be without errors markers.
3. Set target platform to /org.xpect.releng/target-platforms/eclipse_4_6_3-xtext_2_9_2/org.xpect.target.eclipse_4_6_3-xtext_2_9_2.target (Preferences -> Plug-in Development -> Target Platform)
4. Run /org.xpect/src/org/xpect/GenerateXpect.mwe2, /org.xtext.example.arithmetics/src/org/xpect/example/arithmetics/GenerateXpect.mwe2, /org.xtext.example.domainmodel/src/org/xtext/example/domainmodel/GenerateDomainmodel.mwe2. Now your projects should be without errors markers. Sometimes, even after these steps, several projects still have error markers. However, this is a refresh problem in Eclipse. Simply clean build the projects with error markers will solve the issues.
5. Run "mvn clean install" to build artefacts and create a p2 repository (formerly known as update site).


Expand Down
2 changes: 0 additions & 2 deletions org.eclipse.xtext.example.domainmodel.xpect.tests/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
14 changes: 14 additions & 0 deletions org.xpect.releng/GenerateArithmetics.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType">
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/org.xpect"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/xtext/example/arithmetics/GenerateArithmetics.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.xtext.example.arithmetics"/>
</launchConfiguration>
14 changes: 14 additions & 0 deletions org.xpect.releng/GenerateDomainmodel.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType">
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/org.xpect"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/xtext/example/domainmodel/GenerateDomainmodel.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.xtext.example.domainmodel"/>
</launchConfiguration>
28 changes: 23 additions & 5 deletions org.xpect.releng/Xpect.setup
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.target.platform"
defaultValue="Luna"
defaultValue="Neon"
storageURI="scope://Workspace"/>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
Expand Down Expand Up @@ -98,7 +98,8 @@
<requirement
name="org.eclipse.xtext.example.domainmodel.xpect.tests"/>
<sourceLocator
rootFolder="${git.clone.location}"/>
rootFolder="${git.clone.location}"
locateNestedProjects="true"/>
<repositoryList
name="Neon">
<repository
Expand Down Expand Up @@ -180,6 +181,17 @@
name="org.eclipse.m2e.feature.feature.group"/>
<description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="projects:ProjectsBuildTask"
refresh="true"/>
<setupTask
xsi:type="setup:CompoundTask"
name="org.eclipse.debug.ui">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.eclipse.debug.ui/org.eclipse.debug.ui.cancel_launch_with_compile_errors"
value="always"/>
</setupTask>
<setupTask
xsi:type="launching:LaunchTask"
id="GenerateXpectLanguage"
Expand All @@ -188,9 +200,15 @@
</setupTask>
<setupTask
xsi:type="launching:LaunchTask"
id="GenerateXpectLanguage2"
launcher="/org.xpect.releng/GenerateXpect.launch">
<description>Run Task again, workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=457947</description>
id="GenerateArithmetics"
launcher="/org.xpect.releng/GenerateArithmetics.launch">
<description>Generate Arithmetics</description>
</setupTask>
<setupTask
xsi:type="launching:LaunchTask"
id="GenerateDomainmodel"
launcher="/org.xpect.releng/GenerateDomainmodel.launch">
<description>Generate Domain Model</description>
</setupTask>
<stream
name="master"/>
Expand Down
1 change: 0 additions & 1 deletion org.xpect.releng/xtext-examples/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
source.. = src/,\
src-gen/,\
xtend-gen/
source.. = src-gen/

bin.includes = .,\
META-INF/
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions org.xpect.tests/xtend-gen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit a43f18a

Please sign in to comment.