Test case for issue #42

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@989 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-09-09 03:10:51 +00:00
parent cf6181690c
commit 4d80a7e8dd
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<ivysettings>
<settings defaultResolver="lag"/>
<caches defaultCacheDir="${ivy.settings.dir}/target/cache"/>
<resolvers>
<ibiblio name="lag" m2compatible="true" root="http://www.lag.net/repo/"/>
</resolvers>
</ivysettings>

View File

@ -0,0 +1,2 @@
project.version=1.0
project.name=Settings Test

View File

@ -0,0 +1,11 @@
import sbt._
class SettingsTest(info: ProjectInfo) extends DefaultProject(info)
{
val child = project("sub", "Sub", new SubProject(_))
class SubProject(info: ProjectInfo) extends DefaultProject(info)
{
val configgy = "net.lag" % "configgy" % "1.1"
}
}

View File

@ -0,0 +1,23 @@
> update
[failure]
> clean-lib
[success]
$ copy-file changes/ivysettings.xml sub/ivysettings.xml
[success]
> update
[success]
> clean-lib
[success]
$ delete sub/ivysettings.xml
[success]
> update
[failure]
> clean-lib
[success]
$ copy-file changes/ivysettings.xml ivysettings.xml
[success]
> update
[success]