Revision control

Copy as Markdown

* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at
include ':app', ':thirdparty'
// Allow substituting the local application-services path, avoiding the need to
// do a local publish for most cases.
Properties localProperties = null;
String settingAppServicesPath = "substitutions.application-services.dir";
if (file('').canRead()) {
localProperties = new Properties()
logger.lifecycle('Local configuration: loaded')
} else {
logger.lifecycle('Local configuration: absent; proceeding as normal.')
if (localProperties != null) {
String appServicesLocalPath = localProperties.getProperty(settingAppServicesPath);
if (appServicesLocalPath != null) {
logger.lifecycle("Local configuration: substituting application-services modules from path: $appServicesLocalPath")
} else {
logger.lifecycle("Local configuration: application-services substitution path missing. Specify it via '$settingAppServicesPath' setting.")