mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Incremental packaging.
This commit is contained in:
parent
fa546e4510
commit
15b43c0127
12 changed files with 94 additions and 44 deletions
17
src/test/kotlin/com/beust/kobalt/misc/IncludedFileTest.kt
Normal file
17
src/test/kotlin/com/beust/kobalt/misc/IncludedFileTest.kt
Normal file
|
@ -0,0 +1,17 @@
|
|||
package com.beust.kobalt.misc
|
||||
|
||||
import com.beust.kobalt.IFileSpec
|
||||
import org.testng.Assert
|
||||
import org.testng.annotations.Test
|
||||
import java.io.File
|
||||
|
||||
@Test
|
||||
class IncludedFileTest {
|
||||
fun simple() {
|
||||
val from = "src/main/kotlin/"
|
||||
val inf = IncludedFile(From(from), To(""), listOf(IFileSpec.Glob("**.kt")))
|
||||
inf.allFromFiles().map { File(from, it.path) }.forEach {
|
||||
Assert.assertTrue(it.exists(), "Should exist: $it")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue