|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.initialization.BaseSettings
public class BaseSettings
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_BUILD_SRC_DIR
|
| Fields inherited from interface org.gradle.api.initialization.Settings |
|---|
BUILD_DEPENDENCIES_GROUP, BUILD_DEPENDENCIES_NAME, BUILD_DEPENDENCIES_VERSION, DEFAULT_SETTINGS_FILE |
| Constructor Summary | |
|---|---|
protected |
BaseSettings()
|
|
BaseSettings(IProjectDescriptorRegistry projectDescriptorRegistry,
BuildSourceBuilder buildSourceBuilder,
java.io.File settingsDir,
ScriptSource settingsScript,
StartParameter startParameter)
|
| Method Summary | |
|---|---|
java.net.URLClassLoader |
createClassLoader()
|
DefaultProjectDescriptor |
createProjectDescriptor(DefaultProjectDescriptor parent,
java.lang.String name,
java.io.File dir)
|
DefaultProjectDescriptor |
findProject(java.io.File projectDir)
Returns the project with the given project directory. |
DefaultProjectDescriptor |
findProject(java.lang.String path)
Returns the project with the given path. |
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalProperties()
|
BuildSourceBuilder |
getBuildSourceBuilder()
|
protected org.gradle.api.internal.DynamicObjectHelper |
getDynamicObjectHelper()
|
IProjectDescriptorRegistry |
getProjectDescriptorRegistry()
|
org.gradle.api.internal.project.IProjectRegistry<DefaultProjectDescriptor> |
getProjectRegistry()
|
java.io.File |
getRootDir()
Returns the root directory of the build. |
ProjectDescriptor |
getRootProject()
Returns the root project of the build. |
java.io.File |
getSettingsDir()
Returns the settings directory of the build. |
ScriptSource |
getSettingsScript()
|
StartParameter |
getStartParameter()
Returns the set of parameters used to invoke this instance of Gradle. |
void |
include(java.lang.String[] projectPaths)
Adds the given projects to the build. |
void |
includeFlat(java.lang.String[] projectNames)
Adds the given projects to the build. |
DefaultProjectDescriptor |
project(java.io.File projectDir)
Returns the project with the given project directory. |
DefaultProjectDescriptor |
project(java.lang.String path)
Returns the project with the given path. |
void |
setBuildSourceBuilder(BuildSourceBuilder buildSourceBuilder)
|
void |
setProjectDescriptorRegistry(IProjectDescriptorRegistry projectDescriptorRegistry)
|
void |
setRootProjectDescriptor(DefaultProjectDescriptor rootProjectDescriptor)
|
void |
setSettingsDir(java.io.File settingsDir)
|
void |
setSettingsScript(ScriptSource settingsScript)
|
void |
setStartParameter(StartParameter startParameter)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_BUILD_SRC_DIR
| Constructor Detail |
|---|
protected BaseSettings()
public BaseSettings(IProjectDescriptorRegistry projectDescriptorRegistry,
BuildSourceBuilder buildSourceBuilder,
java.io.File settingsDir,
ScriptSource settingsScript,
StartParameter startParameter)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public DefaultProjectDescriptor createProjectDescriptor(DefaultProjectDescriptor parent,
java.lang.String name,
java.io.File dir)
public DefaultProjectDescriptor findProject(java.lang.String path)
SettingsReturns the project with the given path.
findProject in interface Settingspath - The path
public DefaultProjectDescriptor findProject(java.io.File projectDir)
SettingsReturns the project with the given project directory.
findProject in interface SettingsprojectDir - The project directory.
public DefaultProjectDescriptor project(java.lang.String path)
SettingsReturns the project with the given path.
project in interface Settingspath - The path.
public DefaultProjectDescriptor project(java.io.File projectDir)
SettingsReturns the project with the given project directory.
project in interface SettingsprojectDir - The project directory.
public void include(java.lang.String[] projectPaths)
SettingsAdds the given projects to the build. Each path in the supplied list is treated as the path of a project to add to the build. Note that these path are not file paths, but instead specify the location of the new project in the project heirarchy. As such, the supplied paths must use the ':' character as separator.
The last element of the supplied path is used as the project name. The supplied path is converted to a project directory relative to the root project directory.
As an example, the path a:b adds a project with path :a:b, name b and project
directory $rootDir/a/b.
include in interface SettingsprojectPaths - the projects to add.public void includeFlat(java.lang.String[] projectNames)
SettingsAdds the given projects to the build. Each name in the supplied list is treated as the name of a project to add to the build.
The supplied name is converted to a project directory relative to the parent directory of the root project directory.
As an example, the name a add a project with path :a, name a and project directory
$rootDir/../a.
includeFlat in interface SettingsprojectNames - the projects to add.public java.net.URLClassLoader createClassLoader()
createClassLoader in interface org.gradle.api.internal.SettingsInternalpublic ProjectDescriptor getRootProject()
SettingsReturns the root project of the build.
getRootProject in interface Settingspublic void setRootProjectDescriptor(DefaultProjectDescriptor rootProjectDescriptor)
public java.io.File getRootDir()
SettingsReturns the root directory of the build. The root directory is the project directory of the root project.
getRootDir in interface Settingspublic BuildSourceBuilder getBuildSourceBuilder()
public void setBuildSourceBuilder(BuildSourceBuilder buildSourceBuilder)
public StartParameter getStartParameter()
SettingsReturns the set of parameters used to invoke this instance of Gradle.
getStartParameter in interface SettingsgetStartParameter in interface org.gradle.api.internal.SettingsInternalpublic void setStartParameter(StartParameter startParameter)
public java.io.File getSettingsDir()
SettingsReturns the settings directory of the build. The settings directory is the directory containing the settings file.
getSettingsDir in interface Settingspublic void setSettingsDir(java.io.File settingsDir)
public ScriptSource getSettingsScript()
getSettingsScript in interface org.gradle.api.internal.SettingsInternalpublic void setSettingsScript(ScriptSource settingsScript)
public IProjectDescriptorRegistry getProjectDescriptorRegistry()
public void setProjectDescriptorRegistry(IProjectDescriptorRegistry projectDescriptorRegistry)
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
protected org.gradle.api.internal.DynamicObjectHelper getDynamicObjectHelper()
public org.gradle.api.internal.project.IProjectRegistry<DefaultProjectDescriptor> getProjectRegistry()
getProjectRegistry in interface org.gradle.api.internal.SettingsInternal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||