aboutsummaryrefslogtreecommitdiff
path: root/buildScripts/p2
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-02-28 19:24:56 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-02-28 19:25:30 +0100
commit59aa6761115cb912d5223870be348b70e0e9fd9c (patch)
tree5ee738d439926b27bcadd98dd849701ecbb39b29 /buildScripts/p2
parent0a32c9b126253af112b61445d061a0798011702b (diff)
downloadlombok-59aa6761115cb912d5223870be348b70e0e9fd9c.tar.gz
lombok-59aa6761115cb912d5223870be348b70e0e9fd9c.tar.bz2
lombok-59aa6761115cb912d5223870be348b70e0e9fd9c.zip
[eclipse-p2] create a p2 eclipse update site
Diffstat (limited to 'buildScripts/p2')
-rw-r--r--buildScripts/p2/artifacts.xml26
-rw-r--r--buildScripts/p2/content.xml116
-rw-r--r--buildScripts/p2/feature.xml39
-rw-r--r--buildScripts/p2/p2.inf6
4 files changed, 187 insertions, 0 deletions
diff --git a/buildScripts/p2/artifacts.xml b/buildScripts/p2/artifacts.xml
new file mode 100644
index 00000000..e712e87a
--- /dev/null
+++ b/buildScripts/p2/artifacts.xml
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?artifactRepository version='1.1.0'?>
+<repository name='Exported Repository' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
+ <properties size='2'>
+ <property name='p2.timestamp' value='@EPOCH_MILLIS@'/>
+ <property name='p2.compressed' value='true'/>
+ </properties>
+ <mappings size='3'>
+ <rule filter='(&amp; (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
+ <rule filter='(&amp; (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/>
+ <rule filter='(&amp; (classifier=org.eclipse.update.feature))' output='${repoUrl}/features/${id}_${version}.jar'/>
+ </mappings>
+ <artifacts size='2'>
+ <artifact classifier='org.eclipse.update.feature' id='org.projectlombok.feature' version='@VERSION@'>
+ <properties size='2'>
+ <property name='download.contentType' value='application/zip'/>
+ <property name='download.size' value='@FEATURE_ZIP_SIZE@'/>
+ </properties>
+ </artifact>
+ <artifact classifier='osgi.bundle' id='org.projectlombok.agent' version='@VERSION@'>
+ <properties size='1'>
+ <property name='download.size' value='@AGENT_ZIP_SIZE@'/>
+ </properties>
+ </artifact>
+ </artifacts>
+</repository>
diff --git a/buildScripts/p2/content.xml b/buildScripts/p2/content.xml
new file mode 100644
index 00000000..dd3a1e65
--- /dev/null
+++ b/buildScripts/p2/content.xml
@@ -0,0 +1,116 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?metadataRepository version='1.2.0'?>
+<repository name='Exported Repository' type='org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository' version='1'>
+ <properties size='2'>
+ <property name='p2.timestamp' value='@EPOCH_MILLIS@'/>
+ <property name='p2.compressed' value='true'/>
+ </properties>
+ <units size='4'>
+ <unit id='org.projectlombok' version='@VERSION@'>
+ <properties size='2'>
+ <property name='org.eclipse.equinox.p2.name' value='Lombok'/>
+ <property name='org.eclipse.equinox.p2.type.category' value='true'/>
+ </properties>
+ <provides size='1'>
+ <provided namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok' version='@VERSION@'/>
+ </provides>
+ <requires size='1'>
+ <required namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.feature.feature.group' range='[@VERSION@,@VERSION@]'/>
+ </requires>
+ <touchpoint id='null' version='0.0.0'/>
+ </unit>
+ <unit id='org.projectlombok.feature.feature.jar' version='@VERSION@'>
+ <properties size='3'>
+ <property name='org.eclipse.equinox.p2.name' value='Lombok'/>
+ <property name='org.eclipse.equinox.p2.description' value='Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.'/>
+ <property name='org.eclipse.equinox.p2.description.url' value='https://projectlombok.org'/>
+ </properties>
+ <provides size='3'>
+ <provided namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.feature.feature.jar' version='@VERSION@'/>
+ <provided namespace='org.eclipse.equinox.p2.eclipse.type' name='feature' version='1.0.0'/>
+ <provided namespace='org.eclipse.update.feature' name='org.projectlombok.feature' version='@VERSION@'/>
+ </provides>
+ <filter>
+ (org.eclipse.update.install.features=true)
+ </filter>
+ <artifacts size='1'>
+ <artifact classifier='org.eclipse.update.feature' id='org.projectlombok.feature' version='@VERSION@'/>
+ </artifacts>
+ <touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
+ <touchpointData size='1'>
+ <instructions size='1'>
+ <instruction key='zipped'>
+ true
+ </instruction>
+ </instructions>
+ </touchpointData>
+ <licenses size='1'>
+ <license uri='https://raw.githubusercontent.com/rzwitserloot/lombok/master/LICENSE' url='https://raw.githubusercontent.com/rzwitserloot/lombok/master/LICENSE'>
+ Copyright (C) 2009-@YEAR@ The Project Lombok Authors.&#xA;&#xA;Permission is hereby granted, free of charge, to any person obtaining a copy&#xA;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xA;in the Software without restriction, including without limitation the rights&#xA;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xA;copies of the Software, and to permit persons to whom the Software is&#xA;furnished to do so, subject to the following conditions:&#xA;&#xA;The above copyright notice and this permission notice shall be included in&#xA;all copies or substantial portions of the Software.&#xA;&#xA;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xA;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xA;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xA;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xA;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xA;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&#xA;THE SOFTWARE.
+ </license>
+ </licenses>
+ </unit>
+ <unit id='org.projectlombok.agent' version='@VERSION@' singleton='false'>
+ <update id='org.projectlombok.agent' range='[0.0.0,@VERSION@)' severity='0'/>
+ <properties size='1'>
+ <property name='org.eclipse.equinox.p2.name' value='Lombok Agent'/>
+ </properties>
+ <provides size='4'>
+ <provided namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.agent' version='@VERSION@'/>
+ <provided namespace='osgi.bundle' name='org.projectlombok.agent' version='@VERSION@'/>
+ <provided namespace='osgi.identity' name='org.projectlombok.agent' version='@VERSION@'>
+ <properties size='1'>
+ <property name='type' value='osgi.bundle'/>
+ </properties>
+ </provided>
+ <provided namespace='org.eclipse.equinox.p2.eclipse.type' name='bundle' version='1.0.0'/>
+ </provides>
+ <artifacts size='1'>
+ <artifact classifier='osgi.bundle' id='org.projectlombok.agent' version='@VERSION@'/>
+ </artifacts>
+ <touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
+ <touchpointData size='1'>
+ <instructions size='4'>
+ <instruction key='uninstall'>
+ org.eclipse.equinox.p2.touchpoint.eclipse.removeJvmArg(jvmArg:-javaagent:${artifact.location}/lombok.jar);
+ </instruction>
+ <instruction key='zipped'>
+ true
+ </instruction>
+ <instruction key='install'>
+ org.eclipse.equinox.p2.touchpoint.eclipse.addJvmArg(jvmArg:-javaagent:${artifact.location}/lombok.jar);org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/lombok.eclipse.agent.jar);
+ </instruction>
+ <instruction key='manifest'>
+ Bundle-SymbolicName: org.projectlombok.agent&#xA;Bundle-Version: @VERSION@
+ </instruction>
+ </instructions>
+ </touchpointData>
+ </unit>
+ <unit id='org.projectlombok.feature.feature.group' version='@VERSION@' singleton='false'>
+ <update id='org.projectlombok.feature.feature.group' range='[0.0.0,@VERSION@)' severity='0'/>
+ <properties size='4'>
+ <property name='org.eclipse.equinox.p2.name' value='Lombok'/>
+ <property name='org.eclipse.equinox.p2.description' value='Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.'/>
+ <property name='org.eclipse.equinox.p2.description.url' value='https://projectlombok.org'/>
+ <property name='org.eclipse.equinox.p2.type.group' value='true'/>
+ </properties>
+ <provides size='1'>
+ <provided namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.feature.feature.group' version='@VERSION@'/>
+ </provides>
+ <requires size='2'>
+ <required namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.agent' range='[@VERSION@,@VERSION@]'/>
+ <required namespace='org.eclipse.equinox.p2.iu' name='org.projectlombok.feature.feature.jar' range='[@VERSION@,@VERSION@]'>
+ <filter>
+ (org.eclipse.update.install.features=true)
+ </filter>
+ </required>
+ </requires>
+ <touchpoint id='null' version='0.0.0'/>
+ <licenses size='1'>
+ <license uri='https://raw.githubusercontent.com/rzwitserloot/lombok/master/LICENSE' url='https://raw.githubusercontent.com/rzwitserloot/lombok/master/LICENSE'>
+ Copyright (C) 2009-@YEAR@ The Project Lombok Authors.&#xA;&#xA;Permission is hereby granted, free of charge, to any person obtaining a copy&#xA;of this software and associated documentation files (the &quot;Software&quot;), to deal&#xA;in the Software without restriction, including without limitation the rights&#xA;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell&#xA;copies of the Software, and to permit persons to whom the Software is&#xA;furnished to do so, subject to the following conditions:&#xA;&#xA;The above copyright notice and this permission notice shall be included in&#xA;all copies or substantial portions of the Software.&#xA;&#xA;THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR&#xA;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,&#xA;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE&#xA;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER&#xA;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,&#xA;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN&#xA;THE SOFTWARE.
+ </license>
+ </licenses>
+ </unit>
+ </units>
+</repository>
diff --git a/buildScripts/p2/feature.xml b/buildScripts/p2/feature.xml
new file mode 100644
index 00000000..f5d08c4d
--- /dev/null
+++ b/buildScripts/p2/feature.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.projectlombok.feature"
+ label="Lombok"
+ version="@VERSION@">
+
+ <description url="https://projectlombok.org">
+ Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.
+ </description>
+
+ <license url="https://raw.githubusercontent.com/rzwitserloot/lombok/master/LICENSE">
+ Copyright (C) 2009-@YEAR@ The Project Lombok Authors.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the &quot;Software&quot;), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+ </license>
+
+ <plugin
+ id="org.projectlombok.agent"
+ download-size="0"
+ install-size="0"
+ version="@VERSION@"/>
+
+</feature>
diff --git a/buildScripts/p2/p2.inf b/buildScripts/p2/p2.inf
new file mode 100644
index 00000000..8fe5b1e2
--- /dev/null
+++ b/buildScripts/p2/p2.inf
@@ -0,0 +1,6 @@
+instructions.install=\
+org.eclipse.equinox.p2.touchpoint.eclipse.addJvmArg(jvmArg:-javaagent:${artifact.location}/lombok.jar);\
+org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/lombok.eclipse.agent.jar);
+
+instructions.uninstall=\
+org.eclipse.equinox.p2.touchpoint.eclipse.removeJvmArg(jvmArg:-javaagent:${artifact.location}/lombok.jar);