Skip to content

Commit

Permalink
modelcheck: rename ext.warningsAsError to warningAsError to be consis…
Browse files Browse the repository at this point in the history
…tent with MPS
  • Loading branch information
abstraktor committed Jun 11, 2019
1 parent b9c9055 commit 822864e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Parameters:
* `macros` - optional list of path macros. The notation is `new Macro("name", "value")`.
* `projectLocation` - location of the MPS project to generate.
* `errorNoFail` - report errors but do not fail the build.
* `warningsAsError` - handles warnings as errors and will fail the build if any is found when `errorNoFail` is not set.
* `warningAsError` - handles warnings as errors and will fail the build if any is found when `errorNoFail` is not set.
* `debug` - optionally allows to start the JVM that is used to generated with a debugger. Setting it to `true` will cause
the started JVM to suspend until a debugger is attached. Useful for debugging classloading problems or exceptions during
the build.
Expand All @@ -296,4 +296,4 @@ modelcheck {
```

Dependencies of the specified plugins are automatically loaded from the `pluginlocation` and the plugins directory of
MPS. If they are not found the the build will fail.
MPS. If they are not found the the build will fail.
4 changes: 2 additions & 2 deletions src/main/kotlin/de/itemis/mps/gradle/modelcheck/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import java.io.File

open class ModelCheckPluginExtensions: BasePluginExtensions() {
var models: List<String> = emptyList()
var warningsAsError = false
var warningAsError = false
var errorNoFail = false
}

Expand All @@ -35,7 +35,7 @@ open class ModelcheckMpsProjectPlugin : Plugin<Project> {

args.addAll(extension.models.map { "--model=$it" }.asSequence())

if(extension.warningsAsError) {
if(extension.warningAsError) {
args.add("--warning-as-error")
}

Expand Down

0 comments on commit 822864e

Please sign in to comment.