1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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.FileSystems
import java.nio.file.PathMatcher import java.nio.file.PathMatcher
import java.nio.file.Paths import java.nio.file.Paths
import java.nio.file.StandardCopyOption
import java.util.jar.JarOutputStream import java.util.jar.JarOutputStream
import java.util.zip.ZipOutputStream import java.util.zip.ZipOutputStream
import javax.inject.Inject import javax.inject.Inject
@ -116,8 +115,7 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
val fullDir = outDir + "/" + WEB_INF val fullDir = outDir + "/" + WEB_INF
File(fullDir).mkdirs() File(fullDir).mkdirs()
allDependencies.map { it.jarFile.get() }.forEach { allDependencies.map { it.jarFile.get() }.forEach {
KFiles.copy(Paths.get(it.absolutePath), Paths.get(fullDir, it.name), KFiles.copy(Paths.get(it.absolutePath), Paths.get(fullDir, it.name))
StandardCopyOption.REPLACE_EXISTING)
} }
allFiles.add(IncludedFile(From(fullDir), To(WEB_INF), listOf(Glob("**")))) allFiles.add(IncludedFile(From(fullDir), To(WEB_INF), listOf(Glob("**"))))