Ensure that corda-enclavelet.jar is executable and works. (#33)

This commit is contained in:
Chris Rankin 2017-09-06 17:32:08 +01:00 committed by GitHub
parent c0c75c3e19
commit 337e320275
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,4 @@
apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.quasar-utils'
repositories {
mavenLocal()
@ -54,6 +53,11 @@ jar {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
archiveName "corda-enclavelet.jar"
manifest {
attributes(
'Main-Class': 'com.r3.enclaves.txverify.Enclavelet',
)
}
}
task integrationTest(type: Test) {

View File

@ -44,6 +44,7 @@ fun verifyInEnclave(reqBytes: ByteArray) {
// Note: This is only here for debugging purposes
fun main(args: Array<String>) {
Log.TRACE()
Class.forName("com.r3.enclaves.txverify.KryoVerifierSerializationScheme")
val reqBytes = File(args[0]).readBytes()
verifyInEnclave(reqBytes)
}

View File

@ -2,7 +2,6 @@ package com.r3.enclaves.txverify
import net.corda.core.serialization.SerializationContext
import net.corda.core.serialization.SerializationDefaults
import net.corda.core.serialization.SerializationFactory
import net.corda.core.utilities.ByteSequence
import net.corda.nodeapi.internal.serialization.AbstractKryoSerializationScheme
import net.corda.nodeapi.internal.serialization.KRYO_P2P_CONTEXT