Fixed issue where groupId prefixing occurs only after first entry attempt.

This commit is contained in:
Harrison Deng 2022-01-20 04:24:03 -06:00
parent 81bc122ae0
commit afcb6c84b0

6
gen.py
View File

@ -1,5 +1,6 @@
import sys
import os
from tokenize import group
import xml.etree.ElementTree as ET
import requests
import shutil
@ -32,8 +33,9 @@ def project_gen() -> int:
groupId = input("groupId (package): xyz.reslate.")
while (len(groupId) == 0 or (not groupId.islower() and not groupId.isupper()) or (groupId.isupper())):
print("GroupId cannot be empty and must be all lowercase.")
groupId = "xyz.reslate." + input("groupId (package): xyz.reslate.")
groupId = input("groupId (package): xyz.reslate.")
groupId = "xyz.reslate." + groupId
artifactId = input("artifactId (name of plugin): ")
while (len(artifactId) == 0 or (not artifactId.islower() and not artifactId.isupper()) or (artifactId.isupper())):
print("artifactId cannot be empty and must be all lowercase.")