From 1097fabba50c921fcbb38bbd0a82df3ba8f982f4 Mon Sep 17 00:00:00 2001 From: Tristan Lohman Date: Wed, 8 Jan 2014 13:16:07 -0500 Subject: [PATCH] #33 Fill in createArtifact arguments Copied the relevant bits from #34. Developed on Grails 2.3.4 --- scripts/CreateRoute.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/CreateRoute.groovy b/scripts/CreateRoute.groovy index 19eae22..0a40ff8 100644 --- a/scripts/CreateRoute.groovy +++ b/scripts/CreateRoute.groovy @@ -1,11 +1,13 @@ includeTargets << grailsScript("_GrailsInit") +includeTargets << grailsScript("_GrailsCreateArtifacts") target(createRoute: "Creates a new Camel Route.") { + name = argsMap.params ? argsMap.params[0] : 'Example' typeName = "Route" artifactName = "Route" artifactPath = "grails-app/routes" - createArtifact() + createArtifact(type: typeName, path: artifactPath, name: name, suffix: 'Route') } setDefaultTarget(createRoute)