Skip to content
Browse files

fix for cucumber run-app

  • Loading branch information...
1 parent 868dcb3 commit 9c6eaa01d397aea94b310efd9623fdac2b9d2811 @danklynn committed Mar 27, 2010
View
2 CucumberGrailsPlugin.groovy
@@ -17,7 +17,7 @@ class CucumberGrailsPlugin {
def authorEmail = "dan@prax.is"
def title = "Grails Cucumber Plugin"
def description = '''\\
-Provides support command-line or continuous-integrations for Cucumber using JRuby and cuke4duke
+Provides command-line or continuous-integrations support for Cucumber using JRuby and cuke4duke
'''
// URL to the plugin's documentation
View
4 grails-app/conf/BuildConfig.groovy
@@ -10,8 +10,8 @@ grails.project.dependency.resolution = {
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
- grailsPlugins()
- grailsHome()
+ //grailsPlugins()
+ //grailsHome()
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
View
BIN grails-cucumber-0.2.zip
Binary file not shown.
View
2 plugin.xml
@@ -3,7 +3,7 @@
<authorEmail>dan@prax.is</authorEmail>
<title>Grails Cucumber Plugin</title>
<description>\
-Provides support command-line or continuous-integrations for Cucumber using JRuby and cuke4duke
+Provides command-line or continuous-integrations support for Cucumber using JRuby and cuke4duke
</description>
<documentation>http://grails.org/plugin/grails-cucumber</documentation>
<resources>
View
17 scripts/Cucumber.groovy
@@ -1,5 +1,9 @@
includeTargets << new File("${cucumberPluginDir}/scripts/_CucumberSetup.groovy")
+target('default': "Runs cucumber against all the features in the 'features' directory.") {
+ cucumber()
+}
+
target(cucumber: "Runs cucumber against all the features in the 'features' directory.") {
depends(setup, packageApp)
@@ -27,7 +31,7 @@ target(cucumber: "Runs cucumber against all the features in the 'features' direc
}
target(prepareToRun: "preps the appfor running") {
- depends(clean, cleanTestReports, configureProxy)
+ depends(cleanTestReports, configureProxy)
}
def withServer(Closure c) {
@@ -37,22 +41,15 @@ def withServer(Closure c) {
System.setProperty('grails.run.mode', "cucumber")
try {
- server = configureHttpServer()
- server.start()
-
+ runApp()
c()
}
catch (Exception ex) {
ex.printStackTrace()
throw ex
}
finally {
- if (server) {
- stopWarServer()
- }
+ stopServer()
System.setProperty('grails.run.mode', previousRunMode)
}
}
-
-
-setDefaultTarget("cucumber")
View
4 scripts/_CucumberSetup.groovy
@@ -19,7 +19,7 @@ target(setup: "The description of the script goes here!") {
fileset( dir: "${grailsSettings.grailsHome}/lib") {
include name: "**/*.jar"
}
-
+
fileset(dir: "${cucumberPluginDir}") {
include name: "**/*.jar"
}
@@ -36,4 +36,4 @@ target(setup: "The description of the script goes here!") {
taskdef(name:"gem", classname:"cuke4duke.ant.GemTask")
gem args: "install cuke4duke --version 0.2.4 --source http://gemcutter.org/"
}
-}
+}

0 comments on commit 9c6eaa0

Please sign in to comment.
Something went wrong with that request. Please try again.