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

Assets for Android.

This commit is contained in:
Cedric Beust 2015-12-08 07:09:11 -08:00
parent 4354d37ecf
commit 896102dedf
12 changed files with 107 additions and 87 deletions

View file

@ -91,7 +91,8 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
// The transitive closure of libraries goes into WEB-INF/libs.
// Copy them all in kobaltBuild/war/WEB-INF/libs and create one IncludedFile out of that directory
//
val allDependencies = dependencyManager.transitiveClosure(project.compileDependencies)
val allDependencies = dependencyManager.calculateDependencies(project, context, projects,
project.compileDependencies)
val WEB_INF = "WEB-INF/lib"
val outDir = project.buildDirectory + "/war"
@ -268,7 +269,7 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
log(1, "Installing from $buildDir to ${config.libDir}")
val toDir = KFiles.makeDir(config.libDir)
KFiles.copyRecursively(buildDirFile, toDir)
KFiles.copyRecursively(buildDirFile, toDir, deleteFirst = true)
}
return TaskResult()