Skip to content

Commit

Permalink
0.6.0 watchdog adjustments while testing cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Sep 8, 2017
1 parent 091dd49 commit e4bc8de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lazy val cf2rdfVersion = setVersion("0.5.0")
lazy val cf2rdfVersion = setVersion("0.6.0")
val scalaV = "2.12.2"
val cfgV = "0.0.7"
val scalajHttpV = "2.3.0"
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2017-09-08 0.6.0

- watchdog adjustments

2017-09-07 0.5.0

- add watchdog option, suitable to be used in a cronjob.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/reference.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cf2rdf.version = 0.5.0
cf2rdf.version = 0.6.0
6 changes: 3 additions & 3 deletions src/main/scala/org/mmisw/cf2rdf/cf2rdf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object cf2rdf {
val givenStepNames = collection.mutable.SortedSet[String]()
args foreach { stepName
if (!steps.contains(stepName)) {
println(s"invalid step $stepName. Valid steps: ${stepNameOrder.mkString(", ")}")
System.err.println(s"invalid step $stepName. Valid steps: ${stepNameOrder.mkString(", ")}")
sys.exit(1)
}
givenStepNames += stepName
Expand All @@ -31,7 +31,7 @@ object cf2rdf {
stepNameOrder.filter(givenStepNames.contains) foreach { steps(_)() }
}
else {
println(s"""
System.err.println(s"""
|Usage:
| cf2rdf generate-conf [--overwrite]
| cf2rdf watchdog
Expand All @@ -45,7 +45,7 @@ object cf2rdf {
val filename = "cf2rdf.conf"
val file = new File(filename)
if (file.exists() && !args.contains("--overwrite")) {
println(s"$file exists. Use --overwrite to overwrite")
System.err.println(s"$file exists. Use --overwrite to overwrite")
sys.exit(1)
}
val conf = scala.io.Source.fromInputStream(
Expand Down

0 comments on commit e4bc8de

Please sign in to comment.