Commits

Jason Baldridge  committed 9d3afb2

Updated to SBT 0.10.1

  • Participants
  • Parent commits 83ffd6e

Comments (0)

Files changed (9)

 #!/bin/bash
 
-JARS=`echo $FOGBOW_DIR/lib/*.jar $FOGBOW_DIR/target/*.jar $FOGBOW_DIR/lib_managed/compile/*.jar | tr ' ' ':'`
-SCALA_LIB="$FOGBOW_DIR/project/boot/scala-2.8.1/lib/scala-library.jar"
+JARS=`echo $FOGBOW_DIR/lib/*.jar $FOGBOW_DIR/target/*.jar $HADOOP_DIR/*.jar | tr ' ' ':'`
+SCALA_LIB="$FOGBOW_DIR/project/boot/scala-2.9.0/lib/scala-library.jar"
 
 CP=$FOGBOW_DIR/target/classes:$JARS:$SCALA_LIB:$CLASSPATH
 
 
 if [ $CMD = 'build' ]; then
 
-    java -jar $FOGBOW_DIR/project/build/sbt-launch-0.7.7.jar "$@"
+    if test -f ~/.sbtconfig; then
+	. ~/.sbtconfig
+    fi
+    java -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m ${SBT_OPTS} -jar $FOGBOW_DIR/bin/sbt-launch.jar "$@"
+    #java -jar $FOGBOW_DIR/project/build/sbt-launch-0.7.7.jar "$@"
 
 else 
 

File bin/sbt-launch.jar

Binary file added.
+name := "Fogbow"
+
+version := "0.1"
+
+organization := "The University of Texas at Austin"
+
+scalaVersion := "2.9.0"
+
+crossPaths := false
+
+libraryDependencies += "org.apache.hadoop" % "hadoop-core" % "0.20.2"
+
+seq(sbtassembly.Plugin.assemblySettings: _*)
+
+jarName in Assembly := "fogbow-assembly.jar"
+

File project/build.properties

-#Project properties
-#Tue Apr 12 09:09:17 CDT 2011
-project.organization=The University of Texas at Austin
-project.name=Fogbow
-sbt.version=0.7.7
-project.version=0.1.1
-build.scala.versions=2.9.0
-project.initialize=false
+sbt.version=0.10.1

File project/build/FogbowProject.scala

-import sbt._
-
-class FogbowProject (info: ProjectInfo) extends DefaultProject(info) with assembly.AssemblyBuilder {
-  override def disableCrossPaths = true 
-  val hadoop = "org.apache.hadoop" % "hadoop-core" % "0.20.2"
-  val argot = "org.clapper" %% "argot" % "0.3.1"
-}
-
-

File project/build/sbt-launch-0.7.7.jar

Binary file removed.

File project/plugins/Plugins.scala

-class Plugins(info: sbt.ProjectInfo) extends sbt.PluginDefinition(info) {
-  val codaRepo = "Coda Hale's Repository" at "http://repo.codahale.com/"
-  val assemblySBT = "com.codahale" % "assembly-sbt" % "0.1.1"
-}

File project/plugins/build.sbt

+scalaVersion := "2.8.1"
+
+libraryDependencies <+= (sbtVersion) { sv => "com.eed3si9n" %% "sbt-assembly" % ("sbt" + sv + "_0.6") }
+
+

File project/plugins/project/build.properties

-#Project properties
-#Thu Aug 11 16:48:21 CDT 2011
-plugin.uptodate=true