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 f663749c295b15b114a463c3cc719c55ae623668..2027ed3fe448d1aeaee7377fb7bd8fcb559a7ac0 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 {