I hereby claim:
- I am erdi on github.
- I am marcinerdmann (https://keybase.io/marcinerdmann) on keybase.
- I have a public key ASDb4qO2slQAU4UmSKWzUjSfxMh8eGQRQncvsMpdVG5ZRQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| addListener(new TaskExecutionListener() { | |
| void afterExecute(Task task, TaskState state) { | |
| if (task in AbstractArchiveTask) { | |
| println "\nOutput location: ${task.outputs.files.singleFile}\n" | |
| } | |
| } | |
| void beforeExecute(Task task) {} | |
| }) |
| allprojects { | |
| tasks.withType(AbstractArchiveTask) { task -> | |
| task.doLast { | |
| println "\nOutput location: ${task.outputs.files.singleFile}\n" | |
| } | |
| } | |
| } |
| module hello.World | |
| function main = |args| { | |
| println("Hello world!") |
| class A { | |
| String value | |
| } | |
| def list = [new A(value: 'a'), new A(value: 'b'), new A(value: 'c'), new A(value: 'd')] | |
| //we don't know the order and what is in list, we want to move object with value 'c' to the beggining of the list | |
| def moved = list.find { it.value == 'c' } | |
| list.remove(moved) | |
| list.putAt(0, moved) |
| import grails.test.GrailsUnitTestCase | |
| @Category(GrailsUnitTestCase) | |
| class MetaClassMixin { | |
| Delegate metaClassFor(Class clazz) { | |
| registerMetaClass(clazz) | |
| new Delegate(target: clazz.metaClass) | |
| } |