Class MainClassModuleNameExtractor
- java.lang.Object
-
- org.codehaus.plexus.languages.java.jpms.MainClassModuleNameExtractor
-
public class MainClassModuleNameExtractor extends java.lang.ObjectExtract the module name by calling the main method with an external JVM- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.PathjdkHome
-
Constructor Summary
Constructors Constructor Description MainClassModuleNameExtractor(java.nio.file.Path jdkHome)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Map<T,java.lang.String>extract(java.util.Map<T,java.nio.file.Path> files)static java.lang.StringgetModuleName(java.nio.file.Path modulePath)static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
extract
public <T> java.util.Map<T,java.lang.String> extract(java.util.Map<T,java.nio.file.Path> files) throws java.io.IOException- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
-
getModuleName
public static java.lang.String getModuleName(java.nio.file.Path modulePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
-