Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test- preffix should be stripped to obtain classifier.

  • Loading branch information...
commit 185b2006f6197f5ee98f6ee8125baa77d45ee18e 1 parent 2c10d87
Eugene Vigdorchik authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  ivy/IvyInterface.scala
View
2  ivy/IvyInterface.scala
@@ -430,7 +430,7 @@ object Artifact
val classifierConfMap = Map(SourceClassifier -> Sources, DocClassifier -> Docs)
val classifierTypeMap = Map(SourceClassifier -> SourceType, DocClassifier -> DocType)
def classifierConf(classifier: String): Configuration = classifierConfMap.getOrElse(classifier, Optional)
- def classifierType(classifier: String): String = classifierTypeMap.getOrElse(classifier, DefaultType)
+ def classifierType(classifier: String): String = classifierTypeMap.getOrElse(classifier.stripPrefix("test-"), DefaultType)
def classified(name: String, classifier: String): Artifact =
Artifact(name, classifierType(classifier), DefaultExtension, Some(classifier), classifierConf(classifier) :: Nil, None)
}
Please sign in to comment.
Something went wrong with that request. Please try again.