Now detects pom.xml in root directory.

This commit is contained in:
Harrison Deng 2022-01-20 17:11:44 -06:00
parent 4bac8a1a30
commit b2dea8d09b

5
gen.py
View File

@ -163,11 +163,12 @@ def find_pomxml() -> str:
def find_pomxmldir() -> str:
directories = os.listdir()
if os.path.exists("./pom.xml"):
return "./"
for directory in directories:
if os.path.isdir(directory) and "pom.xml" in os.listdir(directory):
return directory
return ""
def __printhelp():
print("usage: {0} <setup | project | server | reset>".format(sys.argv[0]))