diff --git a/build.sbt b/build.sbt index 4360136..16f5d05 100644 --- a/build.sbt +++ b/build.sbt @@ -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" diff --git a/changelog.md b/changelog.md index e150573..8fb50da 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf index c747a71..0da4169 100644 --- a/src/main/resources/reference.conf +++ b/src/main/resources/reference.conf @@ -1 +1 @@ -cf2rdf.version = 0.5.0 \ No newline at end of file +cf2rdf.version = 0.6.0 \ No newline at end of file diff --git a/src/main/scala/org/mmisw/cf2rdf/cf2rdf.scala b/src/main/scala/org/mmisw/cf2rdf/cf2rdf.scala index 88ef8c0..89c9adc 100644 --- a/src/main/scala/org/mmisw/cf2rdf/cf2rdf.scala +++ b/src/main/scala/org/mmisw/cf2rdf/cf2rdf.scala @@ -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 @@ -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 @@ -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(