From 59aa6761115cb912d5223870be348b70e0e9fd9c Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 28 Feb 2020 19:24:56 +0100 Subject: [eclipse-p2] create a p2 eclipse update site --- LICENSE | 2 +- build.xml | 17 +++++- buildScripts/eclipse-p2.ant.xml | 95 ++++++++++++++++++++++++++++++++ buildScripts/p2/artifacts.xml | 26 +++++++++ buildScripts/p2/content.xml | 116 ++++++++++++++++++++++++++++++++++++++++ buildScripts/p2/feature.xml | 39 ++++++++++++++ buildScripts/p2/p2.inf | 6 +++ buildScripts/website.ant.xml | 22 +++++++- 8 files changed, 319 insertions(+), 4 deletions(-) create mode 100644 buildScripts/eclipse-p2.ant.xml create mode 100644 buildScripts/p2/artifacts.xml create mode 100644 buildScripts/p2/content.xml create mode 100644 buildScripts/p2/feature.xml create mode 100644 buildScripts/p2/p2.inf diff --git a/LICENSE b/LICENSE index 5da7dbef..9ea6d69b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 2009-2015 The Project Lombok Authors. +Copyright (C) 2009-2020 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 "Software"), to deal diff --git a/build.xml b/build.xml index 5aaabf26..0a2187fe 100644 --- a/build.xml +++ b/build.xml @@ -371,6 +371,21 @@ lombok.launch.AnnotationProcessorHider$ClaimingProcessor,isolating + + + + + + + + + + + + + + + @@ -637,7 +652,7 @@ ${sourceWarning} - + diff --git a/buildScripts/eclipse-p2.ant.xml b/buildScripts/eclipse-p2.ant.xml new file mode 100644 index 00000000..4dc9b719 --- /dev/null +++ b/buildScripts/eclipse-p2.ant.xml @@ -0,0 +1,95 @@ + + + +This buildfile is part of projectlombok.org. It is responsible for building the eclipse P2 update site. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class Epoch {public static void main(String[] args) {System.out.print(System.currentTimeMillis());}} + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (org.eclipse.update.install.features=true) + + + + + + + + + true + + + + + + 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 "Software"), 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 "AS IS", 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. + + + + + + + + + + + + + + + + + + + + + + + + + + org.eclipse.equinox.p2.touchpoint.eclipse.removeJvmArg(jvmArg:-javaagent:${artifact.location}/lombok.jar); + + + true + + + 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); + + + Bundle-SymbolicName: org.projectlombok.agent Bundle-Version: @VERSION@ + + + + + + + + + + + + + + + + + + + + (org.eclipse.update.install.features=true) + + + + + + + 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 "Software"), 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 "AS IS", 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. + + + + + 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 @@ + + + + + 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. + + + + 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 "Software"), 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 "AS IS", 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. + + + + + 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); diff --git a/buildScripts/website.ant.xml b/buildScripts/website.ant.xml index b14ee89e..b6212b37 100644 --- a/buildScripts/website.ant.xml +++ b/buildScripts/website.ant.xml @@ -1,5 +1,5 @@