don't write <scope> section of pom if scope is 'compile'

This commit is contained in:
Mark Harrah 2012-08-28 11:55:24 -04:00
parent d641c72a45
commit 69724c4f87
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class MakePom(val log: Logger)
scopeElem(scope) ++ optionalElem(opt)
}
def scopeElem(scope: Option[String]): NodeSeq = scope match {
case None => NodeSeq.Empty
case None | Some(Configurations.Compile.name) => NodeSeq.Empty
case Some(s) => <scope>{s}</scope>
}
def optionalElem(opt: Boolean) = if(opt) <optional>true</optional> else NodeSeq.Empty