mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +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: 'kotlin'
|
||||||
apply plugin: 'net.corda.plugins.quasar-utils'
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
@ -54,6 +53,11 @@ jar {
|
|||||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
}
|
}
|
||||||
archiveName "corda-enclavelet.jar"
|
archiveName "corda-enclavelet.jar"
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
'Main-Class': 'com.r3.enclaves.txverify.Enclavelet',
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task integrationTest(type: Test) {
|
task integrationTest(type: Test) {
|
||||||
|
@ -44,6 +44,7 @@ fun verifyInEnclave(reqBytes: ByteArray) {
|
|||||||
// Note: This is only here for debugging purposes
|
// Note: This is only here for debugging purposes
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
Log.TRACE()
|
Log.TRACE()
|
||||||
|
Class.forName("com.r3.enclaves.txverify.KryoVerifierSerializationScheme")
|
||||||
val reqBytes = File(args[0]).readBytes()
|
val reqBytes = File(args[0]).readBytes()
|
||||||
verifyInEnclave(reqBytes)
|
verifyInEnclave(reqBytes)
|
||||||
}
|
}
|
@ -2,7 +2,6 @@ package com.r3.enclaves.txverify
|
|||||||
|
|
||||||
import net.corda.core.serialization.SerializationContext
|
import net.corda.core.serialization.SerializationContext
|
||||||
import net.corda.core.serialization.SerializationDefaults
|
import net.corda.core.serialization.SerializationDefaults
|
||||||
import net.corda.core.serialization.SerializationFactory
|
|
||||||
import net.corda.core.utilities.ByteSequence
|
import net.corda.core.utilities.ByteSequence
|
||||||
import net.corda.nodeapi.internal.serialization.AbstractKryoSerializationScheme
|
import net.corda.nodeapi.internal.serialization.AbstractKryoSerializationScheme
|
||||||
import net.corda.nodeapi.internal.serialization.KRYO_P2P_CONTEXT
|
import net.corda.nodeapi.internal.serialization.KRYO_P2P_CONTEXT
|
Loading…
Reference in New Issue
Block a user