Skip to content

Commit

Permalink
Added logging for generateArchetype in BuildHelpers (#11999)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliTietavainenVaadin committed May 13, 2020
1 parent b3ff732 commit a279e1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/BuildHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,17 @@ def copyWarFiles(artifactId, resultDir = resultPath, name = None):
def generateArchetype(archetype, artifactId, repo, logFile, group="testpkg", archetypeGroup="com.vaadin"):
# Generate the required command line for archetype generation
args = getArgs()
print("Parameters for archetype %s:" % (archetype))
print("using version %s" % (args.version))
cmd = [mavenCmd, "archetype:generate"]
cmd.append("-DarchetypeGroupId=%s" % (archetypeGroup))
cmd.append("-DarchetypeArtifactId=%s" % (archetype))
cmd.append("-DarchetypeVersion=%s" % (args.version))
if repo is not None:
cmd.append("-DarchetypeRepository=%s" % repo)
print("using repository %s" % (repo))
else:
print("using no repository")
cmd.append("-DgroupId=%s" % (group))
cmd.append("-DartifactId=%s" % (artifactId))
cmd.append("-Dversion=1.0-SNAPSHOT")
Expand Down

0 comments on commit a279e1d

Please sign in to comment.