1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Unnecessary.

This commit is contained in:
Cedric Beust 2015-11-22 21:02:45 -08:00
parent 671d1ac7c3
commit cf1ebb29bb

View file

@ -24,7 +24,6 @@ import java.io.OutputStream
import java.nio.file.FileSystems
import java.nio.file.PathMatcher
import java.nio.file.Paths
import java.nio.file.StandardCopyOption
import java.util.jar.JarOutputStream
import java.util.zip.ZipOutputStream
import javax.inject.Inject
@ -116,8 +115,7 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
val fullDir = outDir + "/" + WEB_INF
File(fullDir).mkdirs()
allDependencies.map { it.jarFile.get() }.forEach {
KFiles.copy(Paths.get(it.absolutePath), Paths.get(fullDir, it.name),
StandardCopyOption.REPLACE_EXISTING)
KFiles.copy(Paths.get(it.absolutePath), Paths.get(fullDir, it.name))
}
allFiles.add(IncludedFile(From(fullDir), To(WEB_INF), listOf(Glob("**"))))