From afcb6c84b05bd6147a4efb7710a39d86f1220aa2 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 20 Jan 2022 04:24:03 -0600 Subject: [PATCH] Fixed issue where groupId prefixing occurs only after first entry attempt. --- gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gen.py b/gen.py index 707affc..045008f 100644 --- a/gen.py +++ b/gen.py @@ -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.")