@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class DefaultJvmTools extends Object
| Constructor and description |
|---|
DefaultJvmTools
(org.ysb33r.grolifant.api.core.ProjectOperations projectOperationsIncomplete, Project tempProjectReference) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
JavaExecSpec |
javaExecSpec()Creates a JavaExecSpec. |
|
org.ysb33r.grolifant.api.core.jvm.JvmAppRunnerSpec |
jvmAppRunnerSpec()Creates a org.ysb33r.grolifant.api.core.jvm.JvmAppRunnerSpec. |
|
org.ysb33r.grolifant.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. |
Creates a JavaExecSpec.
Creates a org.ysb33r.grolifant.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 instrumentation 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 classpath