All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.digital.integration.server.common.util.CentralConfigurationUtil.kt Maven / Gradle / Ivy

There is a newer version: 23.3.0-1025.941
Show newest version
package ai.digital.integration.server.common.util

import ai.digital.integration.server.deploy.internals.DeployServerUtil
import org.gradle.api.Project
import java.io.File

class CentralConfigurationUtil {
    companion object {
        fun readServerKey(project: Project, key: String): String {
            return readCCValue(project, "deploy-server.yaml", key).toString()
        }

        private fun readCCValue(project: Project, fileName: String, key: String): Any? {
            val file = File("${DeployServerUtil.getServerWorkingDir(project)}/centralConfiguration/$fileName")
            return YamlFileUtil.readFileKey(file, key)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy