Skip to content

Commit 8cbe241

Browse files
committed
Add eclipse oomph project setup
1 parent 3715ba8 commit 8cbe241

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed

pmd-eclipse-plugin.setup

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<setup:Project
3+
xmi:version="2.0"
4+
xmlns:xmi="http://www.omg.org/XMI"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
7+
xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
8+
xmlns:maven="http://www.eclipse.org/oomph/setup/maven/1.0"
9+
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
10+
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
11+
xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
12+
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/maven/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Maven.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore"
13+
name="pmd-eclipse-plugin"
14+
label="PMD Eclipse Plugin">
15+
<setupTask
16+
xsi:type="jdt:JRETask"
17+
version="JavaSE-1.8"
18+
location="${jre.location-1.8}">
19+
<description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
20+
</setupTask>
21+
<setupTask
22+
xsi:type="setup:EclipseIniTask"
23+
option="-Xmx"
24+
value="1024m"
25+
vm="true">
26+
<description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
27+
</setupTask>
28+
<setupTask
29+
xsi:type="setup:VariableTask"
30+
name="eclipse.target.platform"
31+
defaultValue="Neon"
32+
storageURI="scope://Workspace"/>
33+
<setupTask
34+
xsi:type="setup.p2:P2Task"
35+
label="Tycho">
36+
<requirement
37+
name="org.sonatype.tycho.m2e.feature.feature.group"/>
38+
<repository
39+
url="https://repo.maven.apache.org/maven2/.m2e/connectors/m2eclipse-tycho/0.9.0/N/0.9.0.201609252021/"/>
40+
<description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
41+
</setupTask>
42+
<setupTask
43+
xsi:type="git:GitCloneTask"
44+
id="git.clone"
45+
location="${workspace.location}/${scope.project.name}"
46+
remoteURI="pmd/pmd-eclipse-plugin">
47+
<annotation
48+
source="http://www.eclipse.org/oomph/setup/InducedChoices">
49+
<detail
50+
key="inherit">
51+
<value>github.remoteURIs</value>
52+
</detail>
53+
<detail
54+
key="label">
55+
<value>${scope.project.label} Github repository</value>
56+
</detail>
57+
<detail
58+
key="target">
59+
<value>remoteURI</value>
60+
</detail>
61+
</annotation>
62+
<description>${scope.project.label}</description>
63+
</setupTask>
64+
<setupTask
65+
xsi:type="setup.targlets:TargletTask">
66+
<targlet
67+
name="${scope.project.label}"
68+
activeRepositoryList="${eclipse.target.platform}">
69+
<requirement
70+
name="org.eclipse.sdk.feature.group"/>
71+
<requirement
72+
name="*"/>
73+
<sourceLocator
74+
rootFolder="${git.clone.location}"
75+
locateNestedProjects="true"/>
76+
<repositoryList
77+
name="Oxygen">
78+
<repository
79+
url="http://download.eclipse.org/releases/oxygen"/>
80+
<repository
81+
url="http://download.eclipse.org/cbi/updates/license"/>
82+
</repositoryList>
83+
<repositoryList
84+
name="Neon">
85+
<repository
86+
url="http://download.eclipse.org/releases/neon"/>
87+
<repository
88+
url="http://download.eclipse.org/cbi/updates/license"/>
89+
</repositoryList>
90+
<repositoryList
91+
name="Mars">
92+
<repository
93+
url="http://download.eclipse.org/releases/mars"/>
94+
<repository
95+
url="http://download.eclipse.org/cbi/updates/license"/>
96+
</repositoryList>
97+
<repositoryList
98+
name="Luna">
99+
<repository
100+
url="http://download.eclipse.org/releases/luna"/>
101+
<repository
102+
url="http://download.eclipse.org/cbi/updates/license"/>
103+
</repositoryList>
104+
<repositoryList
105+
name="Kepler">
106+
<repository
107+
url="http://download.eclipse.org/releases/kepler"/>
108+
<repository
109+
url="http://download.eclipse.org/cbi/updates/license"/>
110+
</repositoryList>
111+
<repositoryList
112+
name="Juno">
113+
<repository
114+
url="http://download.eclipse.org/releases/juno"/>
115+
<repository
116+
url="http://download.eclipse.org/cbi/updates/license"/>
117+
</repositoryList>
118+
</targlet>
119+
</setupTask>
120+
<setupTask
121+
xsi:type="maven:MavenImportTask">
122+
<sourceLocator
123+
rootFolder="${git.clone.location}"/>
124+
<description></description>
125+
</setupTask>
126+
<stream name="master"
127+
label="master"/>
128+
<logicalProjectContainer
129+
xsi:type="setup:ProjectCatalog"
130+
href="index:/org.eclipse.setup#//@projectCatalogs[name='com.github']"/>
131+
<description>PMD for Eclipse Plugin</description>
132+
</setup:Project>

0 commit comments

Comments
 (0)