legal cleanup

This commit is contained in:
Mark Harrah 2010-02-07 23:45:19 -05:00
parent 9ed643cff5
commit a33223a02c
59 changed files with 234 additions and 14 deletions

3
NOTICE
View File

@ -2,7 +2,8 @@ Simple Build Tool (xsbt)
Copyright 2008, 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)
Portions based on code from the Scala compiler
Portions based on code from the Scala compiler. Portions of the Scala
library are distributed with the launcher.
Copyright 2002-2008 EPFL, Lausanne
Licensed under BSD-style license (see licenses/LICENSE_Scala)

3
cache/NOTICE vendored Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Cache Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
cache/tracking/NOTICE vendored Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Tracking Component
Copyright 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
compile/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Compile Component
Copyright 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
compile/api/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Source API Component
Copyright 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

7
compile/interface/NOTICE Normal file
View File

@ -0,0 +1,7 @@
Simple Build Tool: Compiler Interface Component
Copyright 2008, 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)
Portions based on code from the Scala compiler.
Copyright 2002-2008 EPFL, Lausanne
Licensed under BSD-style license (see licenses/LICENSE_Scala)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt
import java.io.{File,FileOutputStream}

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt
import java.io.File

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt
import java.io.File

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package sbt

View File

@ -1,3 +1,7 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
// based on Ivy's PomModuleDescriptorWriter, which is Apache Licensed, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0

28
ivy/NOTICE Normal file
View File

@ -0,0 +1,28 @@
Simple Build Tool: Ivy Interface Component
Copyright 2008, 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)
Portions based on Apache Ivy,
licensed under the Apache License, Version 2.0 (see licenses/LICENSE_Apache)
It requires the following notice:
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
Portions of Ivy were originally developed by
Jayasoft SARL (http://www.jayasoft.fr/)
and are licensed to the Apache Software Foundation under the
"Software Grant License Agreement"
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import java.lang.ref.{Reference, SoftReference}

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.boot
// The exception to use when an error occurs at the launcher level (and not a nested exception).

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import java.io.{File, FileOutputStream}

35
launch/NOTICE Normal file
View File

@ -0,0 +1,35 @@
Simple Build Tool Launcher
Copyright 2008, 2009, 2010 Mark Harrah, David MacIver
Licensed under BSD-style license (see LICENSE)
Classes from the Scala library are distributed with the launcher.
Copyright 2002-2008 EPFL, Lausanne
Licensed under BSD-style license (see licenses/LICENSE_Scala)
JLine is distributed with the launcher.
It is licensed under a BSD-style license (see licenses/LICENSE_JLine)
Classes from Apache Ivy, licensed under the Apache License, Version 2.0
(see licenses/LICENSE_Apache) are distributed with the launcher.
It requires the following notice:
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
Portions of Ivy were originally developed by
Jayasoft SARL (http://www.jayasoft.fr/)
and are licensed to the Apache Software Foundation under the
"Software Grant License Agreement"
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbt.boot
object Pre

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.boot
import Pre._

View File

@ -1,5 +1,5 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.boot

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.boot
import java.io.{Closeable, File, FileInputStream, FileOutputStream, InputStream, OutputStream}

3
launch/interface/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Launcher Interface Component
Copyright 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
main/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Aggressive Compiler
Copyright 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -65,7 +65,7 @@ class XSbt(info: ProjectInfo) extends ParentProject(info)
def compilerInterfaceClasspath = compileInterfaceSub.projectClasspath(Configurations.Test)
//run in parallel
override def parallelExecution = false
override def parallelExecution = true
def jlineRev = "0.9.94"
def jlineDep = "jline" % "jline" % jlineRev intransitive()
@ -108,11 +108,20 @@ class XSbt(info: ProjectInfo) extends ParentProject(info)
//override def compileOptions = super.compileOptions ++ List(Unchecked,ExplainTypes, CompileOption("-Xlog-implicits"))
val sbinary = "org.scala-tools.sbinary" %% "sbinary" % "0.3"
}
class Base(info: ProjectInfo) extends DefaultProject(info) with ManagedBase with Component
class Base(info: ProjectInfo) extends DefaultProject(info) with ManagedBase with Component with Licensed
{
override def scratch = true
override def consoleClasspath = testClasspath
}
trait Licensed extends BasicScalaProject
{
def notice = path("NOTICE")
abstract override def mainResources = super.mainResources +++ notice +++ Path.lazyPathFinder( extractLicenses )
lazy val seeRegex = """\(see (.*?)\)""".r
def licensePath(str: String): Path = { val path = Path.fromString(XSbt.this.info.projectPath, str); if(path.exists) path else error("Referenced license '" + str + "' not found at " + path) }
def seePaths(noticeString: String): List[Path] = seeRegex.findAllIn(noticeString).matchData.map(d => licensePath(d.group(1))).toList
def extractLicenses = if(!notice.exists) Nil else FileUtilities.readString(notice asFile, log).fold(_ => { log.warn("Could not read NOTICE"); Nil} , seePaths _)
}
class CompileProject(info: ProjectInfo) extends Base(info) with TestWithLog with TestWithLaunch
{
override def testCompileAction = super.testCompileAction dependsOn(compileInterfaceSub.`package`, interfaceSub.`package`)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.test
import java.io.File

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.test
import java.io.File

3
scripted/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Scripted Test Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.test
trait StatementHandler

3
tasks/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Task Engine Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
tasks/standard/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Standard Tasks Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009 Mark Harrah
*/
package xsbt
import java.net.URL

3
util/classpath/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Classpath Component
Copyright 2008, 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -1,8 +1,8 @@
package xsbt
// stripped down version of http://trac.assembla.com/metascala/browser/src/metascala/HLists.scala
// Copyright (c) 2009, Jesper Nordenberg
// new BSD license, see licenses/MetaScala
// new BSD license, see licenses/LICENSE_MetaScala
package xsbt
object HLists extends HLists
trait HLists

7
util/collection/NOTICE Normal file
View File

@ -0,0 +1,7 @@
Simple Build Tool: Collection Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)
Portions based on MetaScala
Copyright (c) 2009, Jesper Nordenberg
Licensed under BSD-style license (see licenses/LICENSE_MetaScala)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt
import scala.collection.{mutable,immutable}

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt
object ErrorHandling

3
util/control/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Control Component
Copyright 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.api
import java.io.File

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.api
sealed trait Definition extends NotNull

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.api
import java.io.File

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package xsbt.api
import java.io.File

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.api
sealed trait Line extends NotNull { val line: Int }

3
util/datatype/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Datatype Generator Component
Copyright 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

3
util/io/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: I/O Component
Copyright 2008, 2009, 2010 Mark Harrah
Licensed under BSD-style license (see LICENSE)

View File

@ -1,3 +1,6 @@
/* sbt -- Simple Build Tool
* Copyright 2008, 2009, 2010 Mark Harrah
*/
package xsbt
import java.io.File

3
util/log/NOTICE Normal file
View File

@ -0,0 +1,3 @@
Simple Build Tool: Logging Component
Copyright 2008, 2009 Mark Harrah
Licensed under BSD-style license (see LICENSE)