From: Janus Varmarken Date: Sat, 19 Jan 2019 09:02:14 +0000 (-0800) Subject: To enable easy changes to the application main entry point when executed using gradle... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8af3bb0dcea1cf900622f4c4ae42483b19a2a8aa;p=pingpong.git 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" --- 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 {