From ce526c167eeb01139d07fbbf91b1f6d9ad07a56b Mon Sep 17 00:00:00 2001 From: Sean Arms <67096+lesserwhirls@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:52:26 -0700 Subject: [PATCH] Add gradle task to run TdsMonitor Replace the use of the gradle application plugin to run toolsUI and create gradle tasks to run both toolsUI and the TdsMonitor. --- tds-ui/build.gradle | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tds-ui/build.gradle b/tds-ui/build.gradle index a8aa2577e4..2abbf57e47 100644 --- a/tds-ui/build.gradle +++ b/tds-ui/build.gradle @@ -5,7 +5,7 @@ ext.title = 'ToolsUI for the TDS' ext.url = 'https://www.unidata.ucar.edu/software/tds/' apply from: "$rootDir/gradle/any/dependencies.gradle" -apply plugin: 'application' +apply from: "$rootDir/gradle/any/java-internal.gradle" dependencies { implementation enforcedPlatform(project(':tds-platform')) @@ -16,6 +16,14 @@ dependencies { runtimeOnly project(':tds-ugrid') } -application { - mainClass.set("ucar.nc2.ui.ToolsUI") +tasks.register('runToolsUI', JavaExec) { + dependsOn 'classes' + mainClass = 'ucar.nc2.ui.ToolsUI' + classpath = sourceSets.main.runtimeClasspath } + +tasks.register('runTdsMonitor', JavaExec) { + dependsOn 'classes' + mainClass = 'thredds.ui.monitor.TdsMonitor' + classpath = sourceSets.main.runtimeClasspath +} \ No newline at end of file