public class AutomaticModuleNaming
extends java.lang.Object
| Constructor and Description |
|---|
AutomaticModuleNaming() |
| Modifier and Type | Method and Description |
|---|---|
static char[] |
determineAutomaticModuleName(java.lang.String jarFileName)
Determine the automatic module name of a given jar as specified in
ModuleFinder.of
|
static char[] |
determineAutomaticModuleName(java.lang.String fileName,
boolean isFile,
java.util.jar.Manifest manifest)
Determine the automatic module name of a given jar or project as specified in
ModuleFinder.of
|
static char[] |
determineAutomaticModuleNameFromFileName(java.lang.String name,
boolean skipDirectory,
boolean removeExtension)
Determine the automatic module name if no "Automatic-Module-Name" was found in the Manifest, as specified in
ModuleFinder.of
|
static char[] |
determineAutomaticModuleNameFromManifest(java.util.jar.Manifest manifest)
Determine the automatic module name of a given jar or project as defined by an Automatic-Module-Name
header in its manifest.
|
public static char[] determineAutomaticModuleName(java.lang.String jarFileName)
public static char[] determineAutomaticModuleName(java.lang.String fileName,
boolean isFile,
java.util.jar.Manifest manifest)
fileName - names either a jar file or a java project in the workspaceisFile - true indicates that fileName denotes a file, false must be used for projectsmanifest - representation of the META-INF/MANIFEST.MF entry within the given source (jar or project), or nullnullpublic static char[] determineAutomaticModuleNameFromManifest(java.util.jar.Manifest manifest)
manifest - representation of the META-INF/MANIFEST.MF entry within the given source (jar or project), or nullnullpublic static char[] determineAutomaticModuleNameFromFileName(java.lang.String name,
boolean skipDirectory,
boolean removeExtension)
name - the filename (or directory name)skipDirectory - if true, parent directory names are skippedremoveExtension - if true, the ".jar" extension is removed.