
ai.digital.integration.server.util.PropertyUtil.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integratoin-server-gradle-plugin Show documentation
Show all versions of integratoin-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
The newest version!
package ai.digital.integration.server.util
import org.gradle.api.Project
class PropertyUtil {
static def resolveValue(Project project, String propertyName, def defaultValue) {
if (project.hasProperty(propertyName)) {
project.property(propertyName)
} else {
defaultValue
}
}
static def resolveIntValue(Project project, String propertyName, def defaultValue) {
def value = resolveValue(project, propertyName, defaultValue)
if (value == null) {
null as Integer
} else Integer.parseInt(value as String)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy