Class SignedJars
- java.lang.Object
-
- dev.equo.solstice.SignedJars
-
public class SignedJars extends java.lang.ObjectMechanism for stripping signatures from jars.If a given package contains classes from multiple jars, all of those jars must have the same signature. This is especially a problem with nested jars - under real OSGi, nested jars are loaded from within the parent jar. But under Solstice and its
NestedJarsfunctionality, you sometimes have an unsigned nested jar contributing classes to the same package as its signed parent. The solution is to simply strip the signature off of all jars involved, since signing isn't very helpful anyway.If you encounter the unusual situation where a jar needs to have its signature stripped due to its nested jars, feel free to submit a PR to update the
needsStripvariable.You can also check out the main below to debug signing issues in a given package.
-
-
Constructor Summary
Constructors Constructor Description SignedJars()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static voidstripIfNecessary(java.util.ArrayList<java.io.File> file)
-