This file contains 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<jsmoothproject> | |
<JVMSearchPath>registry</JVMSearchPath> | |
<JVMSearchPath>javahome</JVMSearchPath> | |
<JVMSearchPath>jrepath</JVMSearchPath> | |
<JVMSearchPath>jdkpath</JVMSearchPath> | |
<JVMSearchPath>exepath</JVMSearchPath> | |
<JVMSearchPath>jview</JVMSearchPath> | |
<classPath>lib\groovy-all-1.8.6.jar</classPath> | |
<embeddedJar>true</embeddedJar> |
This file contains 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
apply plugin: 'groovy' | |
apply plugin: 'eclipse' | |
archivesBaseName = 'myapp' | |
ext.jsmoothHome = 'C:/program Files/JSmooth 0.9.9-7' | |
configurations { jsmooth } | |
repositories{ |
This file contains 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
project.ext.tempDir = 'tmp' | |
project.ext.targetEclipseDir = 'd:/eclipse' | |
ant.condition(property: "os", value: "windows") { os(family: "windows") } | |
ant.condition(property: "os", value: "unix" ) { os(family: "unix") } | |
task clean << { delete 'tmp' } | |
task installEclipse << { | |
new File(tempDir).mkdirs() |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder | |
by default --> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - | |
%msg%n</pattern> | |
</encoder> | |
</appender> |
This file contains 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
apply plugin: 'groovy' | |
apply plugin: 'flyway' | |
repositories { mavenCentral() } | |
dependencies { | |
compile localGroovy() | |
compile 'com.googlecode.flyway:flyway-core:2.1.1' | |
} |
This file contains 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
task hello << { | |
println 'hello' | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '1.6' | |
} |
This file contains 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 cucumber.runtime.PendingException | |
this.metaClass.mixin(cucumber.runtime.groovy.Hooks) | |
this.metaClass.mixin(cucumber.runtime.groovy.EN) | |
Given(~'^I have a hello app with "([^"]*)"$') { String arg1 -> | |
// Express the Regexp above with the code you wish you had | |
throw new PendingException() | |
} |
This file contains 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
apply plugin: 'java' | |
apply plugin: 'groovy' | |
apply plugin: 'eclipse' | |
//build stuff | |
sourceCompatibility = 1.6 | |
targetCompatibility = 1.6 | |
configurations { | |
cucumberRuntime { |
This file contains 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
public class Hello { | |
String greeting; | |
public Hello(String greeting){ | |
this.greeting = greeting | |
} | |
public String sayHi() { | |
return greeting + " World"; | |
} |
This file contains 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
this.metaClass.mixin(cucumber.runtime.groovy.Hooks) | |
this.metaClass.mixin(cucumber.runtime.groovy.EN) | |
Given(~'^I have a hello app with "([^"]*)"$') { String arg1 -> | |
hello = new Hello(arg1) | |
} | |
When(~'^I ask it to say hi$') { -> | |
hi = hello.sayHi(); | |
} |