mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +00:00
20570d72cf
* CORDA-1238 - Initial blob inspector tool commit Note this is WIP and not ready for prime time but it's time it moved off of a personal branch and into the main code base, especially if I'm passing the serialization code onto someone else's shoulders * CORDA-1238 - Move blob inspector into experimental It was developed locally in tools (as it's a tool), but it's no where near production ready, so lets just ship it in experimental for now * CORDA-1238 - Tidyup and bug fixes
53 lines
1.4 KiB
Groovy
53 lines
1.4 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'application'
|
|
|
|
mainClassName = 'net.corda.blobinspector.MainKt'
|
|
|
|
dependencies {
|
|
compile project(':core')
|
|
compile project(':node-api')
|
|
|
|
compile "commons-cli:commons-cli:$commons_cli_version"
|
|
|
|
testCompile project(':test-utils')
|
|
|
|
testCompile "junit:junit:$junit_version"
|
|
}
|
|
|
|
/**
|
|
* To run from within gradle use
|
|
*
|
|
* ./gradlew -PrunArgs="<cmd> <line> <args>" :experimental:blobinspector:run
|
|
*
|
|
* For example, to parse a file from the command line and print out the deserialized properties
|
|
*
|
|
* ./gradlew -PrunArgs="-f <path/to/file> -d" :experimental:blobinspector:run
|
|
*
|
|
* at the command line.
|
|
*/
|
|
run {
|
|
if (project.hasProperty('runArgs')) {
|
|
args = [ project.findProperty('runArgs').toString().split(" ") ].flatten()
|
|
}
|
|
|
|
if (System.properties.getProperty('consoleLogLevel') != null) {
|
|
logging.captureStandardOutput(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
|
logging.captureStandardError(LogLevel.valueOf(System.properties.getProperty('consoleLogLevel')))
|
|
systemProperty "consoleLogLevel", System.properties.getProperty('consoleLogLevel')
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Build a executable jar
|
|
*/
|
|
jar {
|
|
baseName 'blobinspector'
|
|
manifest {
|
|
attributes(
|
|
'Automatic-Module-Name': 'net.corda.experimental.blobinspector',
|
|
'Main-Class': 'net.corda.blobinspector.MainKt'
|
|
)
|
|
}
|
|
}
|