mirror of https://github.com/sbt/sbt.git
Merge pull request #11 from sbt/wip/packagenames
Move util into sbt.util.internal package
This commit is contained in:
commit
45cb379c6e
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import scala.reflect._
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import scala.reflect._
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import Classes.Applicative
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import Types.Id
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import scala.reflect._
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import Types.Id
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package appmacro
|
||||
|
||||
import Types.Id
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import sbinary.{ CollectionTypes, DefaultProtocol, Format, Input, JavaFormats, Output => Out }
|
||||
import java.io.{ ByteArrayInputStream, ByteArrayOutputStream, File, InputStream, OutputStream }
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ File, FileNotFoundException }
|
||||
import sbinary.{ DefaultProtocol, Format, Operations }
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ File, IOException }
|
||||
import sbinary.{ DefaultProtocol, Format }
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types.:+:
|
||||
import sbinary.{ DefaultProtocol, Format, Input, Output => Out }
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.File
|
||||
import Types.:+:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Classes.Applicative
|
||||
import Types._
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
import scala.reflect.Manifest
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object Classes {
|
||||
trait Applicative[M[_]] {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 David MacIver, Mark Harrah
|
||||
*/
|
||||
package sbt;
|
||||
package sbt.util.internal
|
||||
|
||||
trait Dag[Node <: Dag[Node]] {
|
||||
self: Node =>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/** A mutable set interface that uses object identity to test for set membership.*/
|
||||
trait IDSet[T] {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.lang.Runnable
|
||||
import java.util.concurrent.{ atomic, Executor, LinkedBlockingQueue }
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
import Classes.Applicative
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import collection.mutable
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
sealed trait SourcePosition
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2011 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
trait Show[T] {
|
||||
def apply(t: T): String
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
trait ShowLines[A] {
|
||||
def showLines(a: A): Seq[String]
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object Signals {
|
||||
val CONT = "CONT"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
trait TypeFunctions {
|
||||
type Id[X] = X
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object Types extends Types
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2011 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.util.Locale
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008 Mark Harrah */
|
||||
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Prop._
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Prop._
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Types._
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/** Define our settings system */
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Prop._
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import jline.console.ConsoleReader
|
||||
import jline.console.history.{ FileHistory, MemoryHistory }
|
||||
|
|
@ -128,7 +128,7 @@ final class FullReader(historyPath: Option[File], complete: Parser[_], val handl
|
|||
protected[this] val reader =
|
||||
{
|
||||
val cr = JLine.createReader(historyPath)
|
||||
sbt.complete.JLineCompletion.installCustomCompletor(cr, complete)
|
||||
sbt.util.internal.complete.JLineCompletion.installCustomCompletor(cr, complete)
|
||||
cr
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
/**
|
||||
* Represents a set of completions.
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import java.lang.Character.{ toLowerCase => lower }
|
||||
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import java.io.File
|
||||
import sbt.io.IO
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import History.number
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import java.io.File
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2011 Mark Harrah
|
||||
*/
|
||||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import jline.console.ConsoleReader
|
||||
import jline.console.completer.{ CandidateListCompletionHandler, Completer, CompletionHandler }
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2010, 2011 Mark Harrah
|
||||
*/
|
||||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import Parser._
|
||||
import sbt.Types.{ left, right, some }
|
||||
import sbt.Util.{ makeList, separate }
|
||||
import sbt.util.internal.Types.{ left, right, some }
|
||||
import sbt.util.internal.Util.{ makeList, separate }
|
||||
|
||||
/**
|
||||
* A String parser that provides semi-automatic tab completion.
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2011 Mark Harrah
|
||||
*/
|
||||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import Parser._
|
||||
import java.io.File
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
object ProcessError {
|
||||
def apply(command: String, msgs: Seq[String], index: Int): String =
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import Completion.{ token => ctoken, tokenDisplay }
|
||||
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import DefaultParsers._
|
||||
import TypeString._
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008,2010 Mark Harrah
|
||||
*/
|
||||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
sealed trait UpperBound {
|
||||
/** True if and only if the given value meets this bound.*/
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
object JLineTest {
|
||||
import DefaultParsers._
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import org.specs2.mutable.Specification
|
||||
import org.specs2.specification.Scope
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import org.specs2.mutable.Specification
|
||||
import org.specs2.specification.Scope
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.complete
|
||||
package sbt.util.internal
|
||||
package complete
|
||||
|
||||
import org.specs2.mutable.Specification
|
||||
import org.specs2.specification.Scope
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.IOException
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/** Defines a function to call as sbt exits.*/
|
||||
trait ExitHook {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2011 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
final class MessageOnlyException(override val toString: String) extends RuntimeException(toString)
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/** Implements the level-setting methods of Logger.*/
|
||||
abstract class BasicLogger extends AbstractLogger {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import scala.collection.mutable.ListBuffer
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010, 2011 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ BufferedWriter, PrintStream, PrintWriter }
|
||||
import java.util.Locale
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ BufferedWriter, PrintStream, PrintWriter }
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/**
|
||||
* A filter logger is used to delegate messages but not the logging level to another logger. This means
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/** Promotes the simple Logger interface to the full AbstractLogger interface. */
|
||||
class FullLogger(delegate: Logger) extends BasicLogger {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ File, PrintWriter }
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/**
|
||||
* An enumeration defining the levels available for logging. A level includes all of the levels
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
sealed trait LogEvent extends NotNull
|
||||
final class Success(val msg: String) extends LogEvent
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import xsbti.{ Logger => xLogger, F0 }
|
||||
import xsbti.{ Maybe, Position, Problem, Severity }
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
/**
|
||||
* Provides a `java.io.Writer` interface to a `Logger`. Content is line-buffered and logged at `level`.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.PrintWriter
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2008, 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
// note that setting the logging level on this logger has no effect on its behavior, only
|
||||
// on the behavior of the delegates.
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Tony Sloane
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object StackTrace {
|
||||
def isSbtClass(name: String) = name.startsWith("sbt") || name.startsWith("xsbt")
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Prop._
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah */
|
||||
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Arbitrary.{ arbitrary => arb, _ }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object TestLogger {
|
||||
def apply[T](f: Logger => T): T =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package logic
|
||||
|
||||
import scala.annotation.tailrec
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package sbt
|
||||
package sbt.util.internal
|
||||
package logic
|
||||
|
||||
import org.scalacheck._
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import Relation._
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import org.scalacheck._
|
||||
import Prop._
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
object ChangeReport {
|
||||
def modified[T](files: Set[T]): ChangeReport[T] =
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* sbt -- Simple Build Tool
|
||||
* Copyright 2009, 2010 Mark Harrah
|
||||
*/
|
||||
package sbt
|
||||
package sbt.util.internal
|
||||
|
||||
import java.io.{ File, IOException }
|
||||
import CacheIO.{ fromFile, toFile }
|
||||
|
|
@ -20,7 +20,7 @@ object Util {
|
|||
{
|
||||
val init = keywords.map(tn => '"' + tn + '"').mkString("Set(", ", ", ")")
|
||||
val ObjectName = "ScalaKeywords"
|
||||
val PackageName = "sbt"
|
||||
val PackageName = "sbt.util.internal"
|
||||
val keywordsSrc =
|
||||
"""package %s
|
||||
object %s {
|
||||
|
|
|
|||
Loading…
Reference in New Issue