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

ai.digital.integration.server.common.util.IntegrationServerUtil.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.common.constant.PluginConstant.DIST_DESTINATION_NAME
import org.gradle.api.Project
import java.nio.file.Path
import java.nio.file.Paths

class IntegrationServerUtil {

    companion object {
        fun getDist(project: Project): String {
            return project.buildDir.toPath().resolve(DIST_DESTINATION_NAME).toAbsolutePath().toString()
        }

        fun getRelativePathInIntegrationServerDist(project: Project, relativePath: String): Path {
            return Paths.get("${getDist(project)}/${relativePath}")
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy