Now detects pom.xml in root directory.
This commit is contained in:
		
							
								
								
									
										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])) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user