public interface JvmTools
Tools for creating various JVM/Java utility objects.
Type Params | Return Type | Name and description |
---|---|---|
|
public JavaExecSpec |
javaExecSpec() Creates a JavaExecSpec. |
|
public JavaForkOptions |
javaForkOptions() Creates a {
|
|
public JvmAppRunnerSpec |
jvmAppRunnerSpec() Creates a JvmAppRunnerSpec. |
|
public static JvmTools |
load(ProjectOperations incompleteReference, Project project) |
|
public ClassLocation |
resolveClassLocation(Class aClass) Returns the classpath location for a specific class |
|
public ClassLocation |
resolveClassLocation(Class aClass, FileCollection substitutionSearch, java.util.regex.Pattern substitutionMatch) Returns the classpath location for a specific class. |
|
public ClassLocation |
resolveClassLocation(Class aClass, FileCollection substitutionSearch, java.util.regex.Pattern substitutionMatch, java.util.regex.Pattern redoIfMatch) Returns the classpath location for a specific class. |
|
public 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 {
Creates a JvmAppRunnerSpec.
THis is primarily used internally by classes that implements execution specifications on the JVM.
Returns the classpath location for a specific class
aClass
- Class to find.null
which means class has been found, but cannot be placed on classpath.Returns the classpath location for a specific class.
It can be used when configuration cache-related intrumentation cause issues 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.
It will ignore any files found in caches/jar-
.
It will also recheck the search if the found item is a JAR.
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.null
which means class has been found, but cannot be placed
on classpathReturns 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.
It will ignore any files found in caches/jar-
.
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 classpathReturns 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 classpath