Skip to content

Instantly share code, notes, and snippets.

@brian428
brian428 / .gitignore
Last active August 29, 2015 14:16 — forked from plong0/.gitignore
schema form custom validation
.DS_Store
bower_components/
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1:
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1:
def pickDirDialog = new JFileChooser(
dialogTitle: "Choose directory for the new application",
fileSelectionMode: JFileChooser.DIRECTORIES_ONLY,
approveButtonText: "Set directory for new application",
acceptAllFileFilterUsed: false
)
result = pickDirDialog.showSaveDialog()
if( result == JFileChooser.APPROVE_OPTION )
language: groovy
jdk:
- oraclejdk7
branches:
only:
- master
before_script:
- chmod +x grailsw
$ ./grailsw refresh-dependencies && ./grailsw "test-app integration:"
/home/travis/build.sh: line 147: ./grailsw: Permission denied
The command "./grailsw refresh-dependencies" exited with 126.
language: groovy
jdk:
- oraclejdk7
branches:
only:
- master
script: ./grailsw refresh-dependencies
&& ./grailsw "test-app -integration"
new Person( firstname: "John", lastname: "Doe", age: 12 )
import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
import org.codehaus.groovy.grails.plugins.springsecurity.SecurityFilterPosition
class BootStrap {
def init = { servletContext ->
// Add the bean 'j2eePreAuthenticatedProcessingFilter' into the filter chain
SpringSecurityUtils.clientRegisterFilter('j2eePreAuthenticatedProcessingFilter', SecurityFilterPosition.PRE_AUTH_FILTER)
}
import org.apache.catalina.loader.WebappLoader
eventConfigureTomcat = { tomcat ->
def newContextRoot = "/extjs_src"
File newContextPath = new File( "C:/Developer/Tools/javascript/ext-4.2.0.663/src" )
if( newContextPath.exists() ) {
context = tomcat.addWebapp( newContextRoot, newContextPath.getAbsolutePath() )
context.reloadable = true
WebappLoader loader = new WebappLoader( tomcat.class.classLoader )