Package org.moditect.commands
Class AddModuleInfo
- java.lang.Object
-
- org.moditect.commands.AddModuleInfo
-
public class AddModuleInfo extends java.lang.Object
Creates a copy of a given JAR file, adding a module-info.class descriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path
inputJar
private java.lang.Integer
jvmVersion
private java.lang.String
mainClass
private java.lang.String
moduleInfoSource
private static java.lang.String
NO_JVM_VERSION
private java.nio.file.Path
outputDirectory
private boolean
overwriteExistingFiles
private java.time.Instant
timestamp
private java.lang.String
version
-
Constructor Summary
Constructors Constructor Description AddModuleInfo(java.lang.String moduleInfoSource, java.lang.String mainClass, java.lang.String version, java.nio.file.Path inputJar, java.nio.file.Path outputDirectory, java.lang.String jvmVersion, boolean overwriteExistingFiles, java.time.Instant timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
private void
setTimes(java.nio.file.Path path, java.nio.file.attribute.FileTime time)
private java.nio.file.attribute.FileTime
toFileTime(java.time.Instant timestamp)
-
-
-
Field Detail
-
NO_JVM_VERSION
private static final java.lang.String NO_JVM_VERSION
- See Also:
- Constant Field Values
-
moduleInfoSource
private final java.lang.String moduleInfoSource
-
mainClass
private final java.lang.String mainClass
-
version
private final java.lang.String version
-
inputJar
private final java.nio.file.Path inputJar
-
outputDirectory
private final java.nio.file.Path outputDirectory
-
jvmVersion
private final java.lang.Integer jvmVersion
-
overwriteExistingFiles
private final boolean overwriteExistingFiles
-
timestamp
private final java.time.Instant timestamp
-
-