From 3e30f00e5978a3d07ca86d4acebd08f40ae2ca65 Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Tue, 30 Jul 2024 14:17:52 +0200 Subject: [PATCH] Add snippets project to Tycho build #1390 The snippets project org.eclipse.swt.snippets is currently not part of the Tycho build. This change adds it to the build using a Maven plugin to copy the OS-specific classpath file according to the current environment. Contributes to https://github.com/eclipse-platform/eclipse.platform.swt/issues/1390 --- .../META-INF/MANIFEST.MF | 2 +- examples/org.eclipse.swt.snippets/pom.xml | 49 +++++++++++++++++++ pom.xml | 1 + 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 examples/org.eclipse.swt.snippets/pom.xml diff --git a/examples/org.eclipse.swt.snippets/META-INF/MANIFEST.MF b/examples/org.eclipse.swt.snippets/META-INF/MANIFEST.MF index 68f01cccaae..55ef9f7ef24 100644 --- a/examples/org.eclipse.swt.snippets/META-INF/MANIFEST.MF +++ b/examples/org.eclipse.swt.snippets/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.swt.snippets -Bundle-Version: 3.4.100 +Bundle-Version: 3.4.100.qualifier Bundle-Vendor: %providerName Bundle-Localization: plugin Require-Bundle: org.eclipse.swt diff --git a/examples/org.eclipse.swt.snippets/pom.xml b/examples/org.eclipse.swt.snippets/pom.xml new file mode 100644 index 00000000000..e9a8603e653 --- /dev/null +++ b/examples/org.eclipse.swt.snippets/pom.xml @@ -0,0 +1,49 @@ + + + + 4.0.0 + + eclipse.platform.swt.localbuild + eclipse.platform.swt + 4.33.0-SNAPSHOT + ../../local-build/local-build-parent + + org.eclipse.swt + org.eclipse.swt.snippets + 3.4.100-SNAPSHOT + eclipse-plugin + + + + + com.coderplus.maven.plugins + copy-rename-maven-plugin + 1.0 + + + copy-classpath-for-os + generate-sources + + copy + + + .classpath_${tycho.env.osgi.ws} + .classpath + + + + + + + diff --git a/pom.xml b/pom.xml index 31b430bf4fd..883a1d3d219 100644 --- a/pom.xml +++ b/pom.xml @@ -229,6 +229,7 @@ examples/org.eclipse.swt.examples.browser.demos examples/org.eclipse.swt.examples.launcher examples/org.eclipse.swt.examples.ole.win32 + examples/org.eclipse.swt.snippets examples/org.eclipse.swt.examples.views tests/org.eclipse.swt.tests features/org.eclipse.swt.tools.feature