mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Tests.
This commit is contained in:
parent
e2b8d78cac
commit
027c204f54
1 changed files with 24 additions and 0 deletions
24
src/test/kotlin/com/beust/kobalt/maven/FileSpecTest.kt
Normal file
24
src/test/kotlin/com/beust/kobalt/maven/FileSpecTest.kt
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
package com.beust.kobalt.maven
|
||||||
|
|
||||||
|
import com.beust.kobalt.IFileSpec
|
||||||
|
import com.beust.kobalt.homeDir
|
||||||
|
import com.beust.kobalt.misc.From
|
||||||
|
import com.beust.kobalt.misc.IncludedFile
|
||||||
|
import com.beust.kobalt.misc.KFiles
|
||||||
|
import com.beust.kobalt.misc.To
|
||||||
|
import org.testng.annotations.Test
|
||||||
|
|
||||||
|
@Test(enabled = false)
|
||||||
|
class FileSpecTest {
|
||||||
|
fun f() {
|
||||||
|
val inf = IncludedFile(From("src/main/resources"), To(""), listOf(IFileSpec.GlobSpec("**")))
|
||||||
|
val files = inf.allFromFiles(homeDir("kotlin/kobalt/modules/kobalt-plugin-api"))
|
||||||
|
println("FILES: $files")
|
||||||
|
}
|
||||||
|
|
||||||
|
fun findSourceFiles() {
|
||||||
|
val sourceFiles = KFiles.findSourceFiles(homeDir("kotlin/kobalt/modules/wrapper"),
|
||||||
|
listOf("src/main/java"), listOf("java"))
|
||||||
|
println("Source files: " + sourceFiles)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue