Project Handling
Project handling comprises creating new projects, opening existing projects or accessing the currently active project.
IProjectHandlingApi provides methods to access to the active project, for creating new
projects and for opening existing projects.
getProjects() allows accessing the IProjectHandlingApi like a property.
Accessing IProjectHandlingApi as a property
scriptTask('taskName') {
code {
// IProjectHandlingApi is available as "projects" property
def projectHandlingApi = projects
}
}
projects(Transformer) allows accessing the IProjectHandlingApi in a scope-like way.
Accessing IProjectHandlingApi in a scope-like way
scriptTask('taskName') {
code {
projects {
// IProjectHandlingApi is available inside this Closure
}
}
}