Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xpect-GH-261: Errors after oomph setup + manual setup #218

Merged
merged 1 commit into from
Jul 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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