public class CheckAttributes
extends java.lang.Object
implements com.brambolt.util.jar.Manifests
| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.String> |
attributes
The attributes to check for.
|
| Constructor and Description |
|---|
CheckAttributes(java.util.List<java.lang.String> attributes)
Constructor.
|
CheckAttributes(java.lang.String... attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(java.nio.file.FileSystem fs)
Checks whether the parameter jar manifest has the attributes.
|
void |
throwIf(java.nio.file.FileSystem fs)
Checks whether the parameter jar manifest has the attributes.
|
void |
throwIf(java.util.List<java.lang.String> lines)
Checks whether the parameter jar manifest has the attributes.
|
public final java.util.List<java.lang.String> attributes
public CheckAttributes(java.lang.String... attributes)
attributes - The attributes to check forpublic CheckAttributes(java.util.List<java.lang.String> attributes)
attributes - The attributes to check forpublic void apply(java.nio.file.FileSystem fs)
throws java.io.IOException
apply in interface com.brambolt.util.jar.Manifestsfs - The jar file system to checkjava.lang.IllegalStateException - If one or more attributes are missingjava.io.IOException - If unable to check the manifestpublic void throwIf(java.nio.file.FileSystem fs)
throws org.gradle.api.GradleException,
java.io.IOException
fs - The jar file system to checkjava.lang.IllegalStateException - If one or more attributes are missingjava.io.IOException - If unable to check the manifestorg.gradle.api.GradleExceptionpublic void throwIf(java.util.List<java.lang.String> lines)
throws java.lang.IllegalStateException
lines - The jar manifest lines to checkjava.lang.IllegalStateException - If one or more attributes are missing