Skip to content

Commit f86aa6d

Browse files
committed
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 #1390
1 parent 2374dcf commit f86aa6d

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

examples/org.eclipse.swt.snippets/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.swt.snippets
5-
Bundle-Version: 3.4.100
5+
Bundle-Version: 3.4.100.qualifier
66
Bundle-Vendor: %providerName
77
Bundle-Localization: plugin
88
Require-Bundle: org.eclipse.swt
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2024 Eclipse Foundation and others.
4+
All rights reserved. This program and the accompanying materials
5+
are made available under the terms of the Eclipse Distribution License v1.0
6+
which accompanies this distribution, and is available at
7+
http://www.eclipse.org/org/documents/edl-v10.php
8+
-->
9+
<project xmlns="http://maven.apache.org/POM/4.0.0"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12+
<modelVersion>4.0.0</modelVersion>
13+
<parent>
14+
<artifactId>eclipse.platform.swt.localbuild</artifactId>
15+
<groupId>eclipse.platform.swt</groupId>
16+
<version>4.33.0-SNAPSHOT</version>
17+
<relativePath>../../local-build/local-build-parent</relativePath>
18+
</parent>
19+
<groupId>org.eclipse.swt</groupId>
20+
<artifactId>org.eclipse.swt.snippets</artifactId>
21+
<version>3.4.100-SNAPSHOT</version>
22+
<packaging>eclipse-plugin</packaging>
23+
24+
<build>
25+
<plugins>
26+
<plugin>
27+
<groupId>com.coderplus.maven.plugins</groupId>
28+
<artifactId>copy-rename-maven-plugin</artifactId>
29+
<version>1.0</version>
30+
<executions>
31+
<execution>
32+
<id>copy-classpath-for-os</id>
33+
<phase>generate-sources</phase>
34+
<goals>
35+
<goal>copy</goal>
36+
</goals>
37+
<configuration>
38+
<sourceFile>.classpath_${tycho.env.osgi.ws}</sourceFile>
39+
<destinationFile>.classpath</destinationFile>
40+
</configuration>
41+
</execution>
42+
</executions>
43+
</plugin>
44+
</plugins>
45+
</build>
46+
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@
229229
<module>examples/org.eclipse.swt.examples.browser.demos</module>
230230
<module>examples/org.eclipse.swt.examples.launcher</module>
231231
<module>examples/org.eclipse.swt.examples.ole.win32</module>
232+
<module>examples/org.eclipse.swt.snippets</module>
232233
<module>examples/org.eclipse.swt.examples.views</module>
233234
<module>tests/org.eclipse.swt.tests</module>
234235
<module>features/org.eclipse.swt.tools.feature</module>

0 commit comments

Comments
 (0)