To enable easy changes to the application main entry point when executed using gradle...
authorJanus Varmarken <varmarken@gmail.com>
Sat, 19 Jan 2019 09:02:14 +0000 (01:02 -0800)
committerJanus Varmarken <varmarken@gmail.com>
Sat, 19 Jan 2019 09:02:14 +0000 (01:02 -0800)
Code/Projects/SmartPlugDetector/build.gradle

index f663749..2027ed3 100644 (file)
@@ -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 {