public final class GradleFiles extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GradleFiles.Kind |
static class |
GradleFiles.SettingsFile |
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_FILE_NAME |
static String |
BUILD_FILE_NAME_KTS |
static String |
GRADLE_PROPERTIES_NAME |
static String |
SETTINGS_FILE_NAME |
static String |
SETTINGS_FILE_NAME_KTS |
static String |
VERSION_CATALOG |
static String |
WRAPPER_PROPERTIES |
Constructor and Description |
---|
GradleFiles(File dir) |
GradleFiles(File dir,
boolean knownProject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
File |
getBuildScript() |
File |
getFile(GradleFiles.Kind kind)
Returns the possible file names for a Gradle project file, or
null if that kind is not accepted in the project context. |
File |
getGradlew() |
File |
getParentScript() |
File |
getProjectDir() |
Set<File> |
getProjectFiles()
Returns the main suspected build scripts available for this project.
|
List<File> |
getPropertyFiles()
The list of the existing property files in the current project in
the order of: user, root, and project properties.
|
File |
getRootDir() |
File |
getSettingsScript() |
File |
getWrapperProperties() |
int |
hashCode() |
boolean |
hasWrapper() |
boolean |
isBuildSrcProject()
Returns true if these files may represent a
buildSrc project. |
boolean |
isProject() |
boolean |
isRootProject() |
boolean |
isScriptlessSubProject() |
boolean |
isSubProject() |
long |
lastChanged() |
String |
toString() |
public static final String SETTINGS_FILE_NAME
public static final String SETTINGS_FILE_NAME_KTS
public static final String BUILD_FILE_NAME
public static final String BUILD_FILE_NAME_KTS
public static final String GRADLE_PROPERTIES_NAME
public static final String WRAPPER_PROPERTIES
public static final String VERSION_CATALOG
public GradleFiles(File dir)
public GradleFiles(File dir, boolean knownProject)
public File getBuildScript()
public File getParentScript()
public File getSettingsScript()
public List<File> getPropertyFiles()
public File getProjectDir()
public File getRootDir()
public File getGradlew()
public File getWrapperProperties()
public boolean hasWrapper()
public boolean isBuildSrcProject()
buildSrc
project.buildSrc
public boolean isRootProject()
public boolean isSubProject()
public boolean isScriptlessSubProject()
public boolean isProject()
public Set<File> getProjectFiles()
public File getFile(GradleFiles.Kind kind)
null
if that kind is not accepted in the project context.kind
- The role of the project file.null
public long lastChanged()