@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class DefaultJvmTools extends Object implements org.ysb33r.grolifant5.api.core.JvmTools
| Constructor and description |
|---|
DefaultJvmTools
(Project tempProjectReference) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
copyTo(org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions gjfo, JavaForkOptions jfo)Updates a JavaForkOptions instance from a org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions instance. |
|
JavaExecSpec |
javaExecSpec()Creates a JavaExecSpec. |
|
org.ysb33r.grolifant5.api.core.jvm.JvmAppRunnerSpec |
jvmAppRunnerSpec()Creates a org.ysb33r.grolifant5.api.core.jvm.JvmAppRunnerSpec. |
|
org.ysb33r.grolifant5.api.core.ClassLocation |
resolveClassLocation(Class aClass, FileCollection substitutionSearch, java.util.regex.Pattern substitutionMatch, java.util.regex.Pattern redoIfMatch, java.util.regex.Pattern ignoreFromPaths)Returns the classpath location for a specific class. |
|
org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions |
simpleJavaForkOptions()Creates an instance of org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions. |
Updates a JavaForkOptions instance from a org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions instance.
gjfo - org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptionsjfo - JavaForkOptionsCreates a JavaExecSpec.
Creates a org.ysb33r.grolifant5.api.core.jvm.JvmAppRunnerSpec. This is primarily used internally by classes that implements execution specifications on the JVM.
Returns the classpath location for a specific class.
Works around configuration cache-related intrumentation issue in Gradle 6.5+. See https for details.
If the JAR name is the same as the instrumentJarName, then search the substitution collection for the
first hit that matches the provided pattern.
aClass - Class to find.substitutionSearch - Files to search. A typical example would be to look in
rootProject.buildscript.configurations.getByName( 'classpath' ).substitutionMatch - The pattern to look for. Typically the name of a jar with a version.redoIfMatch - A pattern that will cause a recheck if the path matches.
By default, this is if the filename ends in .jar.null which means class has been found, but cannot be placed
on classpathCreates an instance of org.ysb33r.grolifant5.api.core.jvm.GrolifantSimpleJavaForkOptions.