Class JarManifestParser
- java.lang.Object
-
- org.apache.flink.client.deployment.application.JarManifestParser
-
public class JarManifestParser extends Object
Utility that parses JAR manifest attributes.
-
-
Constructor Summary
Constructors Constructor Description JarManifestParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<String>findFirstManifestAttribute(File jarFile, String... attributes)Returns the value of the first manifest attribute found in the provided JAR file.
-
-
-
Method Detail
-
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
-
-