mirror of https://github.com/sbt/sbt.git
Fix extra test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@1060 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
parent
701edaa2a4
commit
1affe9fa90
|
|
@ -304,7 +304,7 @@ object Resolver
|
|||
|
||||
def defaultFileConfiguration = FileConfiguration(true, None)
|
||||
def mavenStylePatterns = Patterns(Nil, mavenStyleBasePattern :: Nil, true)
|
||||
def ivyStylePatterns = Patterns(Nil, Nil, false)
|
||||
def ivyStylePatterns = defaultIvyPatterns//Patterns(Nil, mavenStyleBasePattern :: Nil, false)
|
||||
|
||||
def defaultPatterns = mavenStylePatterns
|
||||
def mavenStyleBasePattern = "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@ import sbt._
|
|||
|
||||
class UseColor(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
def ivyCacheDirectory = outputPath / "ivy-cache"
|
||||
override def updateOptions = CacheDirectory(ivyCacheDirectory) :: super.updateOptions.toList
|
||||
|
||||
override def managedStyle = ManagedStyle.Ivy
|
||||
val repo = Resolver.file("test-repo", ("repo" / "test").asFile)
|
||||
def color = FileUtilities.readString("color".asFile, log).right.getOrElse(error("No color specified"))
|
||||
override def libraryDependencies = Set(
|
||||
"org.scala-tools.sbt" % "test-ivy-extra" %"1.0" extra("e:color" -> color)
|
||||
|
|
|
|||
|
|
@ -2,5 +2,10 @@ import sbt._
|
|||
|
||||
class DefineColor(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
def ivyCacheDirectory = outputPath / "ivy-cache"
|
||||
override def updateOptions = CacheDirectory(ivyCacheDirectory) :: super.updateOptions.toList
|
||||
|
||||
override def managedStyle = ManagedStyle.Ivy
|
||||
val publishTo = Resolver.file("test-repo", ("repo" / "test").asFile)
|
||||
override def projectID = super.projectID extra("e:color" -> "red")
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
> publish-local
|
||||
> publish
|
||||
[success]
|
||||
|
||||
$ delete project/build/
|
||||
|
|
|
|||
Loading…
Reference in New Issue