Class JarManifestParser
java.lang.Object
org.apache.flink.client.deployment.application.JarManifestParser
Utility that parses JAR manifest attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindFirstManifestAttribute(File jarFile, String... attributes) Returns the value of the first manifest attribute found in the provided JAR file.
-
Constructor Details
-
JarManifestParser
public JarManifestParser()
-
-
Method Details
-
findFirstManifestAttribute
public static Optional<String> findFirstManifestAttribute(File jarFile, String... attributes) throws IOException Returns the value of the first manifest attribute found in the provided JAR file.- Parameters:
jarFile- JAR file to parseattributes- Attributes to check- Returns:
- Optional holding value of first found attribute
- Throws:
IOException- If there is an error accessing the JAR
-