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

Timestamp work.

This commit is contained in:
Cedric Beust 2015-12-19 02:26:10 +04:00
parent 0d75f9ad5f
commit d9a287f710
5 changed files with 80 additions and 25 deletions

View file

@ -0,0 +1,18 @@
package com.beust.kobalt.misc
import com.beust.kobalt.IFileSpec
import org.testng.Assert
import org.testng.annotations.Test
import javax.inject.Inject
@Test
class JarUtilsTest @Inject constructor() {
fun allFromFiles() {
val inf = IncludedFile(From("kobaltBuild/classes"), To(""),
listOf(IFileSpec.FileSpec("com/beust/kobalt/wrapper/Main.class")))
val files = inf.allFromFiles("modules/wrapper")
println("Files: $files")
Assert.assertEquals(files[0].path, "modules/wrapper/kobaltBuild/classes/com/beust/kobalt/wrapper/Main.class")
}
}