numass-framework/numass-control/magnet/build.gradle

32 lines
863 B
Groovy
Raw Normal View History

2015-12-18 16:20:47 +03:00
apply plugin: 'application'
2016-02-17 15:08:21 +03:00
version = "0.3.0"
2015-12-18 16:20:47 +03:00
if (!hasProperty('mainClass')) {
2018-04-05 17:03:05 +03:00
ext.mainClass = 'inr.numass.control.magnet.fx.MagnetApp'
2015-12-18 16:20:47 +03:00
}
mainClassName = mainClass
dependencies {
2018-11-17 22:27:12 +03:00
compile project(':numass-control')
2015-12-18 16:20:47 +03:00
}
task talkToServer(type: JavaExec) {
description 'Console talk to remote server'
// Set main property to name of Groovy script class.
main = 'inr.numass.control.magnet.Talk'
// Set classpath for running the Groovy script.
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
standardOutput = System.out
2018-04-05 17:03:05 +03:00
}
task emulate(type: JavaExec){
group = "application"
main = mainClassName
description = "Test magnet controller with virtual device configuration"
classpath = sourceSets.main.runtimeClasspath
args = ["--config.resource=debug.xml"]
2015-12-18 16:20:47 +03:00
}