From 8af3bb0dcea1cf900622f4c4ae42483b19a2a8aa Mon Sep 17 00:00:00 2001 From: Janus Varmarken Date: Sat, 19 Jan 2019 01:02:14 -0800 Subject: [PATCH] To enable easy changes to the application main entry point when executed using gradle run, main class must now be provided as a system property when using the gradle run task. Sample use: gradlew run -DmainClass=edu.uci.iotproject.evaluation.DetectionResultsAnalyzer --args="arg1 arg2" --- Code/Projects/SmartPlugDetector/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Projects/SmartPlugDetector/build.gradle b/Code/Projects/SmartPlugDetector/build.gradle index f663749..2027ed3 100644 --- a/Code/Projects/SmartPlugDetector/build.gradle +++ b/Code/Projects/SmartPlugDetector/build.gradle @@ -11,8 +11,9 @@ sourceCompatibility = 1.8 //mainClassName = "edu.uci.iotproject.Main" //mainClassName = "edu.uci.iotproject.detection.SignatureDetector" -mainClassName = "edu.uci.iotproject.detection.layer2.Layer2SignatureDetector" +//mainClassName = "edu.uci.iotproject.detection.layer2.Layer2SignatureDetector" //mainClassName = "edu.uci.iotproject.evaluation.DetectionResultsAnalyzer" +mainClassName = System.getProperty("mainClass") repositories { -- 2.34.1