Merge pull request #11 from sbt/wip/packagenames

Move util into sbt.util.internal package
This commit is contained in:
eugene yokota 2015-09-04 14:24:02 -04:00
commit 45cb379c6e
80 changed files with 97 additions and 83 deletions

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package appmacro
import scala.reflect._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package appmacro
import scala.reflect._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package appmacro
import Classes.Applicative

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package appmacro
import scala.reflect._

View File

@ -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 }

View File

@ -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 }

View File

@ -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 }

View File

@ -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 }

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import java.io.File
import Types.:+:

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import Classes.Applicative
import Types._

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._
import scala.reflect.Manifest

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
object Classes {
trait Applicative[M[_]] {

View File

@ -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 =>

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._

View File

@ -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] {

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import java.lang.Runnable
import java.util.concurrent.{ atomic, Executor, LinkedBlockingQueue }

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import Types._
import Classes.Applicative

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import collection.mutable

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
sealed trait SourcePosition

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2011 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
trait Show[T] {
def apply(t: T): String

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
trait ShowLines[A] {
def showLines(a: A): Seq[String]

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
object Signals {
val CONT = "CONT"

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
trait TypeFunctions {
type Id[X] = X

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
object Types extends Types

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2011 Mark Harrah
*/
package sbt
package sbt.util.internal
import java.util.Locale

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2008 Mark Harrah */
package sbt
package sbt.util.internal
import org.scalacheck._
import Prop._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import org.scalacheck._
import Prop._

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Types._

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
/** Define our settings system */

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import org.scalacheck._
import Prop._

View File

@ -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
}
}

View File

@ -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.

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import java.lang.Character.{ toLowerCase => lower }

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import java.io.File
import sbt.io.IO

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
package complete
import History.number

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
package complete
import java.io.File

View 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 }

View File

@ -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.

View File

@ -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

View 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 =

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import Completion.{ token => ctoken, tokenDisplay }

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import DefaultParsers._
import TypeString._

View File

@ -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.*/

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
object JLineTest {
import DefaultParsers._

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import org.specs2.mutable.Specification
import org.specs2.specification.Scope

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import org.specs2.mutable.Specification
import org.specs2.specification.Scope

View File

@ -1,4 +1,5 @@
package sbt.complete
package sbt.util.internal
package complete
import org.specs2.mutable.Specification
import org.specs2.specification.Scope

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package sbt
package sbt.util.internal
import java.io.IOException

View File

@ -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 {

View File

@ -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)

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import java.io.{ BufferedWriter, PrintStream, PrintWriter }

View File

@ -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

View File

@ -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 {

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import java.io.{ File, PrintWriter }

View File

@ -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

View File

@ -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

View File

@ -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 }

View File

@ -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`.

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import java.io.PrintWriter

View File

@ -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.

View File

@ -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")

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
import org.scalacheck._
import Prop._

View File

@ -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, _ }

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
object TestLogger {
def apply[T](f: Logger => T): T =

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package logic
import scala.annotation.tailrec

View File

@ -1,4 +1,4 @@
package sbt
package sbt.util.internal
package logic
import org.scalacheck._

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import Relation._

View File

@ -1,7 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package sbt.util.internal
import org.scalacheck._
import Prop._

View File

@ -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] =

View File

@ -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 }

View File

@ -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 {