Copyright 2020 Cloudmation LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Optional |
lookupAwsProperty(groovy.lang.Closure propertyAccessor, ConfigScope... scopes = [ConfigScope.SELF)Walk the configured scopes (task, project, etc.) to find the first non-null value requested by the provided property access closure. |
|
static java.util.Optional |
lookupAwsPropertyInProjectTree(org.gradle.api.Project project, groovy.lang.Closure propertyAccessor)Recursive helper method to walk the project tree and execute the provided property accessor closure to find the first non-null value. |
|
java.util.List |
lookupAwsPropertySources()Walk the tree from task to root project and return an ordered collection of everything found. |
|
static java.lang.Object |
walkProjectTree(org.gradle.api.Project start, groovy.lang.Closure handler)Recursive helper method to walk the project tree executing the provided handler for each one found, and stopping when there are no more parent projects to traverse. |
Walk the configured scopes (task, project, etc.) to find the first non-null value requested by the provided property access closure.
propertyAccessor - Closure with logic to find a property valuescopes - What config scopes should be considered during the walRecursive helper method to walk the project tree and execute the provided property accessor closure to find the first non-null value. Recursive walk terminates either when a value is found, or when there are no more projects that can be traversed.
project - Gradle project to run the property accessor againstpropertyAccessor - Closure with logic to find a property valueWalk the tree from task to root project and return an ordered collection of everything found.
Recursive helper method to walk the project tree executing the provided handler for each one found, and stopping when there are no more parent projects to traverse.
start - Gradle project to start withhandler - Closure to execute on each project