commit 863073d57a812872a97c8900ef82230fd1bf331b Author: Paul Phillips Date: Mon Feb 14 10:10:07 2011 -0800 Initial Import for sbt-template (autogenerated by sbt-setup). diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..f72e594c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +target +/project/boot +lib_managed +src_managed +/ext diff --git a/README b/README new file mode 100644 index 000000000..2d6b127b5 --- /dev/null +++ b/README @@ -0,0 +1 @@ +This is a skeleton project for sbt. \ No newline at end of file diff --git a/project/build.properties b/project/build.properties new file mode 100644 index 000000000..1a58d1b82 --- /dev/null +++ b/project/build.properties @@ -0,0 +1,8 @@ +#Project properties +#Generated by sbt-setup +project.organization=improving +project.name=sbt-template +sbt.version=0.7.4 +project.version=0.1 +build.scala.versions=2.8.1 +project.initialize=false diff --git a/project/build/SbtTemplateProject.scala b/project/build/SbtTemplateProject.scala new file mode 100644 index 000000000..365a5c87b --- /dev/null +++ b/project/build/SbtTemplateProject.scala @@ -0,0 +1,18 @@ +import sbt._ + +class SbtTemplateProject(info: ProjectInfo) extends DefaultProject(info) { + val localMaven = "Local Maven" at "file://"+Path.userHome+"/.m2/repository" + val localIvy = "Local Ivy" at "file://"+Path.userHome+"/.ivy2/local" + val sonatype = "Sonatype" at "https://oss.sonatype.org/content/groups/public" + + // local use + override def localScala = System.getenv("scala.local") match { + case null => super.localScala + case path => + log.info("Found scala.local: " + path) + List(defineScala("2.9.0-local", new java.io.File(path))) + } + + val scalacheck = "org.scala-tools.testing" %% "scalacheck" % "1.8" % "test" withSources() + val specs = "org.scala-tools.testing" %% "specs" % "1.6.7" % "test" withSources() +} diff --git a/src/main/scala/Main.scala b/src/main/scala/Main.scala new file mode 100644 index 000000000..104a22d9f --- /dev/null +++ b/src/main/scala/Main.scala @@ -0,0 +1,7 @@ +package template + +object Main { + def main(args: Array[String]): Unit = { + // Your code here + } +} diff --git a/src/test/scala/TemplateSpec.scala b/src/test/scala/TemplateSpec.scala new file mode 100644 index 000000000..a68dc1c44 --- /dev/null +++ b/src/test/scala/TemplateSpec.scala @@ -0,0 +1,11 @@ +package template + +import org.specs._ + +class SendSpec extends Specification { + "A template project" should { + "not violate universal realities" >> { + 1 mustEqual 1 + } + } +}