io.openliberty.tools.gradle.extensions.ServerExtension.groovy Maven / Gradle / Ivy
/**
* (C) Copyright IBM Corporation 2017, 2023.
*
* 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.
*/
package io.openliberty.tools.gradle.extensions
import org.gradle.util.ConfigureUtil
import org.gradle.api.Task
import java.util.Properties
class ServerExtension {
//Server properties
String name = "defaultServer"
String outputDir
String appsDirectory = "apps"
boolean stripVersion = false
boolean looseApplication = true
File configDirectory
File serverXmlFile
File bootstrapPropertiesFile
File jvmOptionsFile
File serverEnvFile
boolean mergeServerEnv = false;
Properties bootstrapProperties = new Properties()
List jvmOptions
Properties env = new Properties()
Properties var = new Properties()
Properties defaultVar = new Properties()
Properties keys = new Properties()
boolean clean = false
String timeout
String template
boolean noPassword = false
boolean embedded = false
int verifyAppStartTimeout = 0
FeatureExtension features = new FeatureExtension()
UninstallFeatureExtension uninstallfeatures = new UninstallFeatureExtension()
CleanExtension cleanDir = new CleanExtension()
DeployExtension deploy = new DeployExtension()
UndeployExtension undeploy = new UndeployExtension()
PackageExtension packageLiberty = new PackageExtension()
DumpExtension dumpLiberty = new DumpExtension()
DumpExtension javaDumpLiberty = new DumpExtension()
def uninstallfeatures(Closure closure) {
ConfigureUtil.configure(closure, uninstallfeatures)
}
def features(Closure closure) {
ConfigureUtil.configure(closure, features)
}
def cleanDir(Closure closure) {
ConfigureUtil.configure(closure, cleanDir)
}
def deploy(Closure closure) {
ConfigureUtil.configure(closure, deploy)
}
def undeploy(Closure closure) {
ConfigureUtil.configure(closure, undeploy)
}
def packageLiberty(Closure closure) {
ConfigureUtil.configure(closure, packageLiberty)
}
def dumpLiberty(Closure closure) {
ConfigureUtil.configure(closure, dumpLiberty)
}
def javaDumpLiberty(Closure closure) {
ConfigureUtil.configure(closure, javaDumpLiberty)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy