This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sourcerebels | |
class HomeController { | |
def postService | |
def index = { | |
[postList: postService.list()] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nosy] | |
# Paths to check for changed files; changes cause nose to be run | |
base_path = ./ | |
glob_patterns = *.py | |
exclude_patterns = *_flymake.* | |
extra_paths = sample.cfg | |
# Command line options to pass to nose | |
options = -x --with-growl | |
# Command line arguments to pass to nose; e.g. part of test suite to run | |
tests = *Test*.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestArrayAsVarArgs { | |
static saludar(def numero, String[] nombres) { | |
println "Numero " + numero | |
for (nombre in nombres) { | |
println "Hola " + nombre | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spock.lang.* | |
def "criterio de aceptacion"() { | |
setup: "contexto en el que se ejecuta" | |
expect: "comportamiento que se quiere probar" | |
where: "casos que se prueban" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new File("/tmp/").eachFileRecurse { file -> | |
println file.absolutePath | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function usage() { | |
echo "usage: findInJars <path> <regexp>" | |
exit 1 | |
} | |
[ $# -ne 2 ] && usage | |
jar=$(which jar) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ $# -gt 0 ] && $* > /dev/null 2>&1 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grails.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
grails.project.war.file = "target/${appName}-${appVersion}.war" | |
grails.project.dependency.resolution = { | |
// inherit Grails' default dependencies | |
inherits("global") { | |
// uncomment to disable ehcache | |
// excludes 'ehcache' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
mavenRepo urls: "http://repository.jboss.org/maven2/" | |
} | |
dependencies { | |
classpath "org.grails:grails-gradle-plugin:1.0", | |
"org.grails:grails-bootstrap:1.3.7" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pim | |
class Project { | |
static hasMany = [ tasks : Task] | |
String code | |
String summary | |
User owner |