Now detects pom.xml in root directory.
This commit is contained in:
parent
4bac8a1a30
commit
b2dea8d09b
5
gen.py
5
gen.py
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user