Ok I have to bump this one more time
After I package-plugin, my script name is fine but when I install it, it gets lowercased and cannot be used properly. Is this a bug or how do I avoid this. You can see code below in replies...
Owen Rubel
On Thu, Jun 14, 2012 at 8:32 AM, Owen Rubel
<[hidden email]> wrote:
So does anyone know why this is occurring (see below)?
######################################################
On Wed, Jun 13, 2012 at 9:29 AM, Owen Rubel
<[hidden email]> wrote:
So I found the problem but don't know why this is occurring.
When I run 'grails package-plugin', the script is packaged as that name that Burt pointed out... which is what it is called. But when it is INSTALLED, the script gets turned to CAMELCASE (ie the first character gets turned to lowercase). Is this a bug?
Owen Rubel
On Mon, Jun 11, 2012 at 3:33 PM, Owen Rubel
<[hidden email]> wrote:
Yeo... thats the name of the file. And every time I call it using:
grails webhook-init com.yourapp
it throws that error
Owen Rubel
On Mon, Jun 11, 2012 at 1:32 PM, burtbeckwith
<[hidden email]> wrote:
That should work if the file name is WebhookInit.groovy.
Burt
owen Rubel wrote
>
> First time doing plugin development and new to Gant. Been working on this
> for awhile now and reading through the Gant documentation here
> (http://grails.org/doc/1.3.7/guide/single.html#4.1
> Creating Gant Scripts) and the plugin development but so far neither has
> helped with this error. I keep getting an 'ERROR: Script not found' error
> when trying to run my init script in the plugin.
>
> Here is what I have in the script in the plugin...
>
> *************************************
> includeTargets << grailsScript("_GrailsInit")
> target('webhook-init': 'Creates artifacts for the Webhook plugin') {
> if (argValues.size() == 1) {
> String packageName = argValues
> String dir = packageName.replaceAll('\\.', '/') + '/'
> generateFile
> "$webhookGrailsPluginDir/src/templates/Webhook.groovy.template",
> "$basedir/grails-app/domain/${dir}Webhook.groovy"
> generateFile
> "$webhookGrailsPluginDir/src/templates/WebhookController.groovy.template",
> "$basedir/grails-app/controller/${dir}WebhookController.groovy"
> }else{
> return 1
> }
> }
>
> setDefaultTarget('webhook-init')
> *********************************************
>
> Owen Rubel
>
--
View this message in context: http://grails.1312388.n4.nabble.com/Plugin-Development-Script-Not-Found-tp4629930p4629931.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email