Skip to content
Snippets Groups Projects
Commit 5150c6c3 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Adding dirty warning

parent 45b639a2
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.core
import java.util.Properties
import org.apache.log4j.Logger
object BiopetExecutable {
object BiopetExecutable extends Logging {
val modules: Map[String, List[MainCommand]] = Map(
"pipeline" -> List(
......@@ -108,4 +109,14 @@ object BiopetExecutable {
prop.load(getClass.getClassLoader.getResourceAsStream("git.properties"))
prop.getProperty("git.commit.id.abbrev")
}
def checkDirtyBuild(logger: Logger) {
val prop = new Properties()
prop.load(getClass.getClassLoader.getResourceAsStream("git.properties"))
val describeShort = prop.getProperty("git.commit.id.describe-short")
if (describeShort.endsWith("-dirty")) {
logger.warn("This is a dirty build")
}
}
checkDirtyBuild(logger)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment