move remaining pieces of sbt subproject to sbt_pending and fix notices

This commit is contained in:
Mark Harrah 2010-09-21 21:55:50 -04:00
parent 108ecf59fa
commit 5a13de4ff7
588 changed files with 24 additions and 80 deletions

11
run/NOTICE Normal file
View File

@ -0,0 +1,11 @@
/* sbt -- Simple Build Tool
* Copyright 2008 Mark Harrah
*
* Partially based on exit trapping in Nailgun by Pete Kirkham,
* copyright 2004, Martian Software, Inc
* licensed under Apache 2.0 License.
*/
Portions based on code by Pete Kirkham in Nailgun
Copyright 2004, Martian Software, Inc
Licensed under the Apache License, Version 2.0 (see licenses/LICENSE_Apache)

View File

@ -1,12 +0,0 @@
Simple Build Tool (sbt)
Copyright 2008, 2009, 2010 Steven Blundy, Josh Cough, Nathan Hamblen, Mark Harrah, David MacIver, Mikko Peltonen, Tony Sloane, Vesa Vilhonen
Licensed under BSD-style license (see LICENSE)
Portions based on code by Mike Clark in JDepend
Copyright 1999-2004 Clarkware Consulting, Inc.
Licensed under BSD-style license (see licenses/LICENSE_jdepend)
Portions based on code by Pete Kirkham in Nailgun
Copyright 2004, Martian Software, Inc
Licensed under the Apache License, Version 2.0 (see licenses/LICENSE_Apache)

3
sbt_pending/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool (sbt)
Copyright 2008, 2009, 2010 Steven Blundy, Josh Cough, Nathan Hamblen, Mark Harrah, David MacIver, Mikko Peltonen, Tony Sloane, Vesa Vilhonen
Licensed under BSD-style license (see LICENSE)

View File

@ -112,9 +112,9 @@ trait IvyTasks extends Project
trait ManagedProject extends ClasspathProject with IvyTasks trait ManagedProject extends ClasspathProject with IvyTasks
{ {
/** This is the public ID of the project (used for publishing, for example) */ /** This is the public ID of the project (used for publishing, for example) */
def moduleID: String = normalizedName + appendable(crossScalaVersionString) def moduleID: String = normalizedName
/** This is the full public ID of the project (used for publishing, for example) */ /** This is the full public ID of the project (used for publishing, for example) */
def projectID: ModuleID = ModuleID(organization, moduleID, version.toString).artifacts(artifacts.toSeq : _*) def projectID: ModuleID = ModuleID(organization, moduleID, version.toString).artifacts(artifacts.toSeq : _*).cross(true)
/** This is the default name for artifacts (such as jars) without any version string.*/ /** This is the default name for artifacts (such as jars) without any version string.*/
def artifactID = moduleID def artifactID = moduleID
@ -132,22 +132,6 @@ trait ManagedProject extends ClasspathProject with IvyTasks
/** The base path to which dependencies in configuration 'config' are downloaded.*/ /** The base path to which dependencies in configuration 'config' are downloaded.*/
def configurationPath(config: Configuration): Path = managedDependencyPath / config.toString def configurationPath(config: Configuration): Path = managedDependencyPath / config.toString
import StringUtilities.nonEmpty
implicit def toGroupID(groupID: String): GroupID =
{
nonEmpty(groupID, "Group ID")
new GroupID(groupID, buildScalaVersion)
}
implicit def toRepositoryName(name: String): RepositoryName =
{
nonEmpty(name, "Repository name")
new RepositoryName(name)
}
implicit def moduleIDConfigurable(m: ModuleID): ModuleIDConfigurable =
{
require(m.configurations.isEmpty, "Configurations already specified for module " + m)
new ModuleIDConfigurable(m)
}
/** Creates a new configuration with the given name.*/ /** Creates a new configuration with the given name.*/
def config(name: String) = new Configuration(name) def config(name: String) = new Configuration(name)
@ -478,56 +462,6 @@ object BasicDependencyPaths
val DefaultDependencyDirectoryName = "lib" val DefaultDependencyDirectoryName = "lib"
val PomExtension = ".pom" val PomExtension = ".pom"
} }
object StringUtilities
{
def normalize(s: String) = s.toLowerCase.replaceAll("""\s+""", "-")
def nonEmpty(s: String, label: String)
{
require(s.trim.length > 0, label + " cannot be empty.")
}
def appendable(s: String) = if(s.isEmpty) "" else "_" + s
}
final class GroupID private[sbt] (groupID: String, scalaVersion: String) extends NotNull
{
def % (artifactID: String) = groupArtifact(artifactID)
def %% (artifactID: String) =
{
require(!scalaVersion.isEmpty, "Cannot use %% when the sbt launcher is not used.")
groupArtifact(artifactID + appendable(scalaVersion))
}
private def groupArtifact(artifactID: String) =
{
nonEmpty(artifactID, "Artifact ID")
new GroupArtifactID(groupID, artifactID)
}
}
final class GroupArtifactID private[sbt] (groupID: String, artifactID: String) extends NotNull
{
def % (revision: String): ModuleID =
{
nonEmpty(revision, "Revision")
ModuleID(groupID, artifactID, revision, None)
}
}
final class ModuleIDConfigurable private[sbt] (moduleID: ModuleID) extends NotNull
{
def % (configurations: String): ModuleID =
{
nonEmpty(configurations, "Configurations")
import moduleID._
ModuleID(organization, name, revision, Some(configurations))
}
}
final class RepositoryName private[sbt] (name: String) extends NotNull
{
def at (location: String) =
{
nonEmpty(location, "Repository location")
new MavenRepository(name, location)
}
}
import scala.collection.{Map, mutable} import scala.collection.{Map, mutable}
/** A Project that determines its tasks by reflectively finding all vals with a type /** A Project that determines its tasks by reflectively finding all vals with a type
* that conforms to Task.*/ * that conforms to Task.*/

Some files were not shown because too many files have changed in this diff Show More