mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Move zip verification to tests.
This commit is contained in:
parent
1e958ef7dd
commit
92d281e423
3 changed files with 9 additions and 11 deletions
|
@ -56,9 +56,5 @@ class Args {
|
|||
|
||||
@Parameter(names = arrayOf("--update"), description = "Update to the latest version of Kobalt")
|
||||
var update: Boolean = false
|
||||
|
||||
@Parameter(names = arrayOf("--verifyDistribution"), description = "Verify the distribution",
|
||||
hidden = true)
|
||||
var verifyDistribution: Boolean = false
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,10 @@ import com.beust.kobalt.api.IClasspathDependency
|
|||
import com.beust.kobalt.api.Kobalt
|
||||
import com.beust.kobalt.api.PluginTask
|
||||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.app.*
|
||||
import com.beust.kobalt.app.BuildFileCompiler
|
||||
import com.beust.kobalt.app.MainModule
|
||||
import com.beust.kobalt.app.ProjectGenerator
|
||||
import com.beust.kobalt.app.UpdateKobalt
|
||||
import com.beust.kobalt.app.remote.KobaltClient
|
||||
import com.beust.kobalt.app.remote.KobaltServer
|
||||
import com.beust.kobalt.internal.PluginInfo
|
||||
|
@ -149,8 +152,6 @@ private class Main @Inject constructor(
|
|||
if (args.update) {
|
||||
// --update
|
||||
updateKobalt.updateKobalt()
|
||||
} else if (args.verifyDistribution) {
|
||||
VerifyKobaltZip().run()
|
||||
} else {
|
||||
//
|
||||
// Everything below requires to parse the build file first
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
package com.beust.kobalt.app
|
||||
package com.beust.kobalt
|
||||
|
||||
import com.beust.kobalt.KobaltException
|
||||
import com.beust.kobalt.api.Kobalt
|
||||
import com.beust.kobalt.misc.KFiles
|
||||
import com.beust.kobalt.misc.log
|
||||
import org.testng.annotations.Test
|
||||
import java.io.FileInputStream
|
||||
import java.util.jar.JarFile
|
||||
import java.util.jar.JarInputStream
|
||||
|
||||
class VerifyKobaltZip {
|
||||
fun run() {
|
||||
class VerifyKobaltZipTest : KobaltTest() {
|
||||
@Test
|
||||
fun verifyZipFile() {
|
||||
var success = true
|
||||
var foundKobaltw = false
|
||||
var foundJar = false
|
Loading…
Add table
Add a link
Reference in a new issue