/
main.py
27 lines (25 loc) · 935 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from fileManager import fileManager
import json
name = ""
def CreatemainFile(nameProduct):
FMName = nameProduct+"Example"
FMMain = fileManager(FMName,nameProduct)
FMMain.javaClassGen()
FMMain.addMainFile()
def CreateInfrastructure(nameProduct):
fileNameInf = nameProduct+"Infrastructure"
FMInfrastructure = fileManager(fileNameInf,nameProduct)
FMInfrastructure.javaClassGen()
jsonFile = open('scratch.json')
dataStore = json.load(jsonFile)
FMInfrastructure.addInfrastructure(dataStore)
def CreateAppFile(nameProduct):
fileNameApp = nameProduct+"Application"
FMApplication = fileManager(fileNameApp,nameProduct)
FMApplication.javaClassGen()
FMApplication.addAplication("ligth")
if __name__ == "__main__":
nameProduct = input("Entry file name (Recommended few characters):")
CreateInfrastructure(nameProduct)
CreatemainFile(nameProduct)
CreateAppFile(nameProduct)