Skip to content

Commit 536fea8

Browse files
committed
Consume SVG rasterizer via capability in SWT tests bundle
Currently, requiring an SVG rasterizer needs manual placement of an according fragment providing a rasterizer on the classpath. With this change, requiring SVG support can be defined explicitly via a required capability that is provided by the according SWT fragment. Contributes to #1944
1 parent d8b1f98 commit 536fea8

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

bundles/org.eclipse.swt.svg/META-INF/MANIFEST.MF

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Import-Package: com.github.weisj.jsvg;version="[1.7.0,2.0.0)",
1111
com.github.weisj.jsvg.geometry.size;version="[1.7.0,2.0.0)",
1212
com.github.weisj.jsvg.parser;version="[1.7.0,2.0.0)"
1313
Export-Package: org.eclipse.swt.svg
14+
Provide-Capability: eclipse.swt;image.format="svg";version:Version="1.0"

tests/org.eclipse.swt.tests/META-INF/MANIFEST.MF

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Require-Bundle: org.junit;bundle-version="4.13.2",
2020
Eclipse-BundleShape: dir
2121
Bundle-RequiredExecutionEnvironment: JavaSE-17
2222
Automatic-Module-Name: org.eclipse.swt.tests
23+
Require-Capability: eclipse.swt;filter:="(image.format=svg)"

tests/org.eclipse.swt.tests/META-INF/p2.inf

-4
This file was deleted.

0 commit comments

Comments
 (0)