public interface JseSourceSet
extends org.gradle.api.Named
| Modifier and Type | Method and Description |
|---|---|
org.gradle.api.provider.Provider<org.gradle.api.file.Directory> |
getOutputDir()
Output directory for the source set.
|
org.gradle.api.provider.Provider<org.gradle.api.file.Directory> |
getSrcDir()
Provide for the root directory of the source set,
|
void |
lifecycle(java.lang.String name,
java.lang.Class<? extends JseLifecycleManager> clazz)
Associates a life cycle with the source set.
|
void |
readOutputPathFromTsConfig()
Reads the output path from
tsconfig.json. |
void |
readProjectVersionFromPackageJson()
Forces the project's version to be read from the
package.json file's version field. |
void |
setOutputPath(java.lang.Object relativePath)
Sets an optional output directory.
|
void |
setSrcDir(java.lang.Object dir)
Sets the source directory.
|
org.gradle.api.provider.Provider<org.gradle.api.file.Directory> getSrcDir()
void setSrcDir(java.lang.Object dir)
dir - Directory can be anything convertible using Project.file(java.lang.Object).void setOutputPath(java.lang.Object relativePath)
relativePath - Relative path to the source directory. Anything that is convertible to a string is accepted.void readOutputPathFromTsConfig()
tsconfig.json.
If the file does not exist or does not have an outDir field, then the source set will behave as if
the output directory has not been set.
org.gradle.api.provider.Provider<org.gradle.api.file.Directory> getOutputDir()
void lifecycle(java.lang.String name,
java.lang.Class<? extends JseLifecycleManager> clazz)
This method can only be called once and should be done during the initial creation of the source set.
name - Name of life cycle.clazz - Life cycle manager class.void readProjectVersionFromPackageJson()
package.json file's version field.
If applying this, only apply it to one source set within a project.