Skip to content

Commit 911be93

Browse files
committed
Update target platform documentation
The TPD editor plugin is hosted at a different location. Update the comments where to find it, and regenerate the target platform. Also enable the Xtext builder on the project. There are no actual functional changes, this is just housekeeping.
1 parent e64ddc7 commit 911be93

File tree

5 files changed

+37
-5
lines changed

5 files changed

+37
-5
lines changed

net.sf.eclipsecs.target/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
<buildCommand>
914
<name>org.eclipse.m2e.core.maven2Builder</name>
1015
<arguments>
@@ -13,5 +18,6 @@
1318
</buildSpec>
1419
<natures>
1520
<nature>org.eclipse.m2e.core.maven2Nature</nature>
21+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
1622
</natures>
1723
</projectDescription>

net.sf.eclipsecs.target/net.sf.eclipsecs.target.target

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?pde?>
3-
<!-- generated with https://github.com/mbarbero/fr.obeo.releng.targetplatform -->
4-
<target name="Eclipse Checkstyle" sequenceNumber="1523084336">
3+
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
4+
<target name="Eclipse Checkstyle" sequenceNumber="1580415883">
55
<locations>
66
<location includeMode="slicer" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="true" type="InstallableUnit">
77
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>

net.sf.eclipsecs.target/net.sf.eclipsecs.target.tpd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// install http://mbarbero.github.io/fr.obeo.releng.targetplatform/p2/ to use this target definition
1+
// Install http://download.eclipse.org/cbi/tpd/3.0.0-SNAPSHOT/ to use this target definition.
2+
// Read https://github.com/eclipse-cbi/targetplatform-dsl for more details.
23
target "Eclipse Checkstyle"
34
with source configurePhase
45

net.sf.eclipsecs.target/readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## What's this?
2+
3+
The .target file describes the minimum eclipse environment that eclipse-cs runs in.
4+
5+
## How to use the target platform
6+
7+
In the Maven build it is used automatically for compilation
8+
(see target-platform-configuration section in the parent POM).
9+
10+
For development in Eclipse you have to load it manually, but only one time:
11+
Open the .target file and use the "Set As Active Target" hyperlink. This may take
12+
a while the first time, since plugins are loaded from the Internet.
13+
14+
If you don't do that, the compilation happens against the eclipse plugins of
15+
your IDE and you may call methods that don't exist in earlier versions, which
16+
will lead to runtime errors for end users.
17+
18+
## How to update the target platform
19+
20+
Target files are hard to maintain manually. Therefore we use a custom DSL to
21+
maintain the target platform, and to derive the .target file.
22+
23+
Install https://github.com/eclipse-cbi/targetplatform-dsl to edit the .tpd
24+
file. After saving use the context menu of the .tpd file to create a new
25+
version of the .target file.
26+
27+
Both the .target and .tpd files must be checked in after changes.

net.sf.eclipsecs.target/readme.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)