added top-level URI alias, uri/file aliases for construction

This commit is contained in:
Mark Harrah 2011-02-14 18:54:09 -05:00
parent dd06a0c1d3
commit 202dac644f
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
package object sbt extends sbt.std.TaskExtra with sbt.Types with sbt.ProcessExtra with sbt.impl.DependencyBuilders with sbt.PathExtra with sbt.ProjectConstructors
{
type File = java.io.File
type URI = java.net.URI
implicit def maybeToOption[S](m: xsbti.Maybe[S]): Option[S] =
if(m.isDefined) Some(m.get) else None
def uri(s: String): URI = new URI(s)
def file(s: String): File = new File(s)
}