Class NativeResourcesOptions
- java.lang.Object
-
- org.graalvm.buildtools.gradle.dsl.NativeResourcesOptions
-
public abstract class NativeResourcesOptions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NativeResourcesOptions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
autodetect()
Enables auto-detection of resources, using the default detection parameters.void
autodetection(org.gradle.api.Action<? super ResourceDetectionOptions> spec)
abstract org.gradle.api.provider.ListProperty<java.lang.String>
getBundles()
The list of bundles to include in the generated resources file.abstract ResourceDetectionOptions
getDetectionOptions()
abstract org.gradle.api.provider.ListProperty<java.lang.String>
getExcludedPatterns()
The list of resources to exclude, as Java regular expressions.abstract org.gradle.api.provider.ListProperty<java.lang.String>
getIncludedPatterns()
The list of resources to include, as Java regular expressions.
-
-
-
Method Detail
-
getDetectionOptions
public abstract ResourceDetectionOptions getDetectionOptions()
-
autodetection
public void autodetection(org.gradle.api.Action<? super ResourceDetectionOptions> spec)
-
autodetect
public void autodetect()
Enables auto-detection of resources, using the default detection parameters.
-
getBundles
@Input public abstract org.gradle.api.provider.ListProperty<java.lang.String> getBundles()
The list of bundles to include in the generated resources file. The contents of this property is used to generate the "bundles" section of the resource-config.json file- Returns:
- the list of bundles
-
getIncludedPatterns
@Input public abstract org.gradle.api.provider.ListProperty<java.lang.String> getIncludedPatterns()
The list of resources to include, as Java regular expressions. The contents of this property is used to generate the "resources" : "includes" section of the resource-config.json file. It will be merged with detected resources, if any.- Returns:
- the list of resources to include
-
getExcludedPatterns
@Input public abstract org.gradle.api.provider.ListProperty<java.lang.String> getExcludedPatterns()
The list of resources to exclude, as Java regular expressions. The contents of this property is used to generate the "resources" : "excludes" section of the resource-config.json file. It will be merged with detected resources, if any.- Returns:
- the list of resources to exclude
-
-