mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +00:00
Ensure that corda-enclavelet.jar is executable and works. (#33)
This commit is contained in:
parent
c0c75c3e19
commit
337e320275
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user