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 tA unit: | |
| Environment set to development..... | |
> You currently already have a version of the plugin installed [svn-1.0.2]. Do you want to update to [svn-1.0.1]? [y,n] y | |
| Resolving plugin JAR dependencies..... | |
> You currently already have a version of the plugin installed [svn-1.0.1]. Do you want to update to [svn-1.0.2]? [y,n] y | |
| Resolving plugin JAR dependencies..... | |
| Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/Users/aalmiray/.grails/2.0.1/projects/foo/plugins/svn-1.0.1/src/groovy" does not exist! (Use --stacktrace to see the full trace) |
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 javafx.animation.AnimationTimer | |
RND = new Random() | |
DATA_PERIOD = 2500000000l | |
lastDataCall = 0 | |
TIMER = [ | |
handle: {long l -> | |
long currentNanoTime = System.nanoTime() | |
if (currentNanoTime > lastDataCall + DATA_PERIOD) { |
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 javafx.animation.AnimationTimer | |
RND = new Random() | |
DATA_PERIOD = 2500000000l | |
lastDataCall = 0 | |
TIMER = [ | |
handle: {long l -> | |
long currentNanoTime = System.nanoTime() | |
if (currentNanoTime > lastDataCall + DATA_PERIOD) { |
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 RidiculoslySimpleLazyComprehension implements Iterator { | |
private int internalCounter = 0 | |
private final Closure generator | |
private final Closure condition | |
private boolean exhausted | |
RidiculoslySimpleLazyComprehension(Closure generator, Closure condition = null) { | |
this.generator = generator | |
this.condition = condition ?: {-> false } |
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 kettle; | |
import java.awt.event.ActionEvent; | |
import org.codehaus.griffon.runtime.core.AbstractGriffonController; | |
class KettleController() : AbstractGriffonController() { | |
var model : Model? = null; | |
fun click(evt : ActionEvent) { | |
model?.setValue("Kotlin"); |
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 2.0.4 | |
grails.project.dependency.resolution = { | |
// inherit Grails' default dependencies | |
inherits("global") { | |
// uncomment to disable ehcache | |
// excludes 'ehcache' | |
} | |
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | |
checksums true // Whether to verify checksums on resolve |
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
ext { | |
javaFxHome = System.env['JAVAFX_HOME'] | |
javaHome = System.env['JAVA_HOME'] | |
jdk7 = System.getProperty('java.version')[0..2].toDouble() >= 1.7 | |
} | |
if (!jdk7 && !javaFxHome) { | |
println "please set JAVAFX_HOME to the dir that contains the rt/lib/jfxrt.jar" | |
System.exit 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
package calculator | |
import wslite.rest.ContentType | |
@griffon.plugins.wslite.WsliteAware | |
class CalculatorController { | |
def model | |
def calculate = { evt = null -> | |
String a = model.num1 |
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 calculator; | |
import static griffon.util.CollectionUtils.newMap; | |
import griffon.util.CallableWithArgs; | |
import griffon.util.CollectionUtils; | |
import java.awt.event.ActionEvent; | |
import java.util.Map; | |
import org.codehaus.griffon.runtime.core.AbstractGriffonController; |
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
diff --git a/pom.xml b/pom.xml | |
index 9ebede6..b231249 100644 | |
--- a/pom.xml | |
+++ b/pom.xml | |
@@ -3,9 +3,23 @@ | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>groovy-swt</groupId> | |
<artifactId>groovy-swt</artifactId> | |
- <version>0.5.1</version> | |
+ <version>0.5.3-griffon</version> |