@@ -21,6 +21,8 @@ object CucumberPlugin extends Plugin with CucumberIntegration {
21
21
22
22
val cucumberMaxMemory = SettingKey [String ](" cucumber-max-memory" )
23
23
val cucumberMaxPermGen = SettingKey [String ](" cucumber-max-perm-gen" )
24
+ val cucumberSystemProperties = SettingKey [Map [String , String ]](" cucumber-system-properties" )
25
+ val cucumberJVMOptions = SettingKey [List [String ]](" cucumber-jvm-options" )
24
26
25
27
val cucumberFeaturesDir = SettingKey [File ](" cucumber-features-directory" )
26
28
val cucumberStepsBasePackage = SettingKey [String ](" cucumber-steps-base-package" )
@@ -43,9 +45,9 @@ object CucumberPlugin extends Plugin with CucumberIntegration {
43
45
(argTask, cucumberTestSettings, cucumberOptions, cucumberOutput, streams) map(testWithCucumber)
44
46
45
47
protected def cucumberSettingsTask : Initialize [Task [CucumberSettings ]] =
46
- (cucumberMaxMemory, cucumberMaxPermGen, fullClasspath in Test , streams) map {
47
- (mm, mpg, cp, s) => {
48
- CucumberSettings (mm, mpg, cp.toList.map(_.data), LoggedOutput (s.log))
48
+ (cucumberMaxMemory, cucumberMaxPermGen, cucumberSystemProperties, cucumberJVMOptions, fullClasspath in Test , streams) map {
49
+ (mm, mpg, sp, jvmopt, cp, s) => {
50
+ CucumberSettings (mm, mpg, sp, jvmopt, cp.toList.map(_.data), LoggedOutput (s.log))
49
51
}
50
52
}
51
53
@@ -83,10 +85,12 @@ object CucumberPlugin extends Plugin with CucumberIntegration {
83
85
84
86
cucumberMaxMemory := " 256M" ,
85
87
cucumberMaxPermGen := " 64M" ,
88
+ cucumberSystemProperties := Map .empty[String , String ],
89
+ cucumberJVMOptions := Nil ,
86
90
87
91
cucumberFeaturesDir <<= (baseDirectory) { _ / " src" / " test" / " features" },
88
92
cucumberStepsBasePackage := " " ,
89
- cucumberExtraOptions := List [String ]() ,
93
+ cucumberExtraOptions := List .empty [String ],
90
94
91
95
cucumberPrettyReport := false ,
92
96
cucumberHtmlReport := false ,
0 commit comments