ai.digital.integration.server.deploy.internals.CopyDeployServerUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integration-server-gradle-plugin Show documentation
Show all versions of integration-server-gradle-plugin Show documentation
The easy way to get custom setup for Deploy up and running
package ai.digital.integration.server.deploy.internals
import org.apache.commons.io.FileUtils
import java.io.File
class CopyDeployServerUtil {
companion object {
fun execute(copyFolders: Map>, workingDir: String) {
copyFolders.forEach { entry ->
val where = entry.key
val listOfDirectories = entry.value
listOfDirectories.forEach { directory ->
FileUtils.copyDirectory(directory, File("${workingDir}/${where}"))
}
}
}
}
}