mirror of https://github.com/sbt/sbt.git
Fix classifier support and corresponding test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@1039 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
parent
391734b167
commit
f167888030
|
|
@ -552,7 +552,7 @@ object ManageDependencies
|
|||
private def extra(artifact: Artifact) =
|
||||
{
|
||||
val ea = artifact.classifier match { case Some(c) => artifact.extra("e:classifier" -> c); case None => artifact }
|
||||
javaMap(artifact.extraAttributes)
|
||||
javaMap(ea.extraAttributes)
|
||||
}
|
||||
private def javaMap(map: Map[String,String]) = if(map.isEmpty) null else wrap.Wrappers.javaMap(map.toSeq : _*)
|
||||
private def toURL(file: File) = file.toURI.toURL
|
||||
|
|
|
|||
|
|
@ -2,5 +2,7 @@ import sbt._
|
|||
|
||||
class Test(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
def ivyCacheDirectory = outputPath / "ivy-cache"
|
||||
override def updateOptions = CacheDirectory(ivyCacheDirectory) :: super.updateOptions.toList
|
||||
val testng = "org.testng" % "testng" % "5.7" classifier "jdk15"
|
||||
}
|
||||
Loading…
Reference in New Issue