grails-plugin

Installing Grails Spock Plugin in 2.0.0M1

泪湿孤枕 提交于 2019-12-10 16:19:15
问题 I'm kicking the tires on Grails 2.0.0M1 and Springsource Tool Suite 2.7.1, but I'm having problems installing the spock plugin. When I run "grails install-plugin spock 0.6-groovy-1.8-SNAPSHOT" I get: | Downloading: spock-0.6-groovy-1.8-SNAPSHOT.pom :: problems summary :: :::: ERRORS grailsCentral: bad organisation found in http://svn.codehaus.org/grails-plugins/grails-spock/tags/RELEASE_0_6-groovy-1_8-SNAPSHOT/spock-0.6-groovy-1.8-SNAPSHOT.pom: expected='org.grails.plugins' found='org

How to configure Quartz triggers in Grails to allow different schedules for testing and production

白昼怎懂夜的黑 提交于 2019-12-10 09:53:40
问题 I am trying to adopt the Quartz plugin (:quartz:1.0.1) in Grails 2.2.4 and am trying to figure out how to allow development and testing to use a different schedule than what is desired in production without having to change the code deployed to each. Here is my experience. I am using a JDBC JobStore and the Quartz Monitor plugin (:quartz-monitor:1.0) too. So I have a job defined like this: class TestJob { static triggers = { cron name: 'testTrigger', startDelay: 1000, cronExpression: '0 0/1 *

How to check groovy script for compilation errors [duplicate]

╄→гoц情女王★ 提交于 2019-12-09 21:26:30
问题 This question already has an answer here : Compiling user entered groovy script at run time (1 answer) Closed 4 years ago . We can create and run groovyscript at runtime using code below import groovy.lang.GroovyClassLoader; import groovy.lang.GroovyObject; import java.io.File; import java.io.IOException; // Create a String with Groovy code. final StringBuilder groovyScript = new StringBuilder(); groovyScript.append("class Sample {"); groovyScript.append(" String sayIt() { return \"Groovy

Grails hangs on command line

泄露秘密 提交于 2019-12-09 17:27:38
问题 I just downloaded Grails 2.0.1. Created a new project and then tried adding the mysql connector as per the documentation but Grails hangs at command prompt without any message. I tried to execute in verbose and stacktrace mode but it prints nothing. I tried cleaning and re-executing but all the grails commands are getting stuck. They don't print anything beyond "configuring classpath" message . Please help. Thanks 回答1: Cleaning .ivy cache helps $HOME/.grails/ivy-cache 回答2: Had the same

Making Grails form development DRYer

时光怂恿深爱的人放手 提交于 2019-12-09 06:58:34
问题 When using Grails, the GSP code to render each form field looks something like this: <tr class="prop"> <td valign="top" class="name"><label for="username">Login Name:</label></td> <td valign="top" class="value ${hasErrors(bean: person, field: 'username', 'errors')}"> <input type="text" id="username" name="username" value="${person.username?.encodeAsHTML()}"/> </td> </tr> <tr class="prop"> <td valign="top" class="name"><label for="userRealName">Full Name:</label></td> <td valign="top" class=

Grails installing a plugin from behind corporate firewall which blocks access

痞子三分冷 提交于 2019-12-09 03:36:44
问题 Grails plugin's page is accessible but when I try to install plugins from command prompt, it is blocked by our corporate firewall. I see that you can download plugins(the one I am trying to install is spring-security-core) and then install it. But the download provided in the spring-security page does not download everything. Is there a link/place I can download the whole plugin and then install them manually? Update Example of an error I am getting, when I install. Server access Error:

Grails 3.1.0.M2 Database Reverse Engineering

你。 提交于 2019-12-08 23:11:30
Need of help. I am new to Grails, My question is How to do db-reverse-engineer.? I did it in Grails 2.5.1 but I am struggling with Grails 3.1.0.M2 version. Thanks in advance. There's no plugin for Grails 3. I started to convert the older one but it's more work than I was expecting because it has to work with Hibernate 4, and the old plugin only works with Hibernate 3. But the generated files wouldn't be any different in Grails 3 than in Grails 2 since GORM has stayed rather consistent. Since the plugin is only used at build time, and often only once or at most a few times, I recommend that you

How to extend/override controller actions of plugins?

拈花ヽ惹草 提交于 2019-12-08 18:30:33
问题 The plugin (Nimble 0.3) I am using in my grails application, includes some controllers and associated actions. I want to change (slightly) some actions behavior , and I was wondering how I can achieve that. Can I create a child controller that inherits from my plugin controller and override some of the action implementation? Or, can I create another Controller with the same name as the plugin controller but located in a different package? Well actually what I really need to understand is :

Creating GroupID and ArtifactID for a custom Grails plugin

让人想犯罪 __ 提交于 2019-12-08 12:15:49
问题 I am writing my own Grails Plugin. When I package it, I see a pom.xml and plugin.xml are generated. In these, the groupId and artifactId are org.grails.plugins and plugin-config respectively. I would like to specify what these should be so hat my plugin ends up in the correct place in artifactory. How do I do this? Thanks. 回答1: It is the job of release plugin to set the default groupId for the plugin. For all grails plugin it is org.grails.plugins . You can modify groupId by setting a

How to get selected row values in easygrid

前提是你 提交于 2019-12-08 09:07:06
问题 I create custom button "open" in grails easygrid plugin. I want get some parameters in this button. How I can get values from the selected row? <grid:grid id='jqgridinitial' name='customerList' jqgrid.caption="'Customer'" open="${g.createLink(controller: 'customer', action: 'index', params:[???] }" 回答1: This is the javascript code to return the selected row: var row = jQuery("#jqgridinitial_table").jqGrid('getGridParam','selrow'); But, I think what you actually need is a custom jqgrid