mirror of https://github.com/sbt/sbt.git
added top-level URI alias, uri/file aliases for construction
This commit is contained in:
parent
dd06a0c1d3
commit
202dac644f
|
|
@ -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
|
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 File = java.io.File
|
||||||
|
type URI = java.net.URI
|
||||||
implicit def maybeToOption[S](m: xsbti.Maybe[S]): Option[S] =
|
implicit def maybeToOption[S](m: xsbti.Maybe[S]): Option[S] =
|
||||||
if(m.isDefined) Some(m.get) else None
|
if(m.isDefined) Some(m.get) else None
|
||||||
|
def uri(s: String): URI = new URI(s)
|
||||||
|
def file(s: String): File = new File(s)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue