Adding mode diversification across apps.
authorrtrimana <rtrimana@uci.edu>
Thu, 8 Aug 2019 20:04:57 +0000 (13:04 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 8 Aug 2019 20:04:57 +0000 (13:04 -0700)
Extractor/Extractor.groovy

index 4607b7c..b5f3194 100644 (file)
@@ -101,15 +101,17 @@ import Timer.SimulatedTimer
 @Field File extractedObjectsConstructorApp1 = new File("Extractor/App1/extractedObjectsConstructorApp1.groovy")
 @Field File extractedObjectsConstructorApp2 = new File("Extractor/App2/extractedObjectsConstructorApp2.groovy")
 
-
+@Field chooseMode = 0
 //Empty the files
 if (App == "App1") {
        globalObjects.write("")
        extractedObjectsApp1.write("")
        extractedObjectsConstructorApp1.write("")
+       chooseMode = 0
 } else if (App == "App2") {
        extractedObjectsApp2.write("")
        extractedObjectsConstructorApp2.write("")
+       chooseMode = 1
 }
 
 
@@ -402,8 +404,6 @@ def input(LinkedHashMap metaData, String name, String type, Closure Input) {
        find(Input)
 }
 
-@Field chooseMode = 0
-
 //input linkedHashMap
 def input(LinkedHashMap metaData) {
        if (metaData.containsKey('title')) {