Class ManifestModuleNameExtractor
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.ManifestModuleNameExtractor
-
- All Implemented Interfaces:
ModuleNameExtractor
class ManifestModuleNameExtractor extends java.lang.Object implements ModuleNameExtractor
Extracts the name of the module by reading the Automatic-Module-Name attribute of the manifest file- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description ManifestModuleNameExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
extract(java.nio.file.Path file)
private java.util.jar.Manifest
extractManifest(java.io.File file)
-
-
-
Method Detail
-
extract
public java.lang.String extract(java.nio.file.Path file) throws java.io.IOException
- Specified by:
extract
in interfaceModuleNameExtractor
- Throws:
java.io.IOException
-
extractManifest
private java.util.jar.Manifest extractManifest(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-