Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
Updated to Lift 2.3-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
dpp committed Mar 15, 2011
1 parent 22a67aa commit 427d273
Show file tree
Hide file tree
Showing 33 changed files with 130 additions and 160 deletions.
12 changes: 6 additions & 6 deletions lift_basic/project/build/LiftProject.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt._

class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
val liftVersion = "2.2"
val liftVersion = "2.3-SNAPSHOT"

// uncomment the following if you want to use the snapshot repo
// val scalatoolsSnapshot = ScalaToolsSnapshots
Expand All @@ -11,12 +11,12 @@ class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
// override def scanDirectories = Nil

override def libraryDependencies = Set(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile->default",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default",
"junit" % "junit" % "4.5" % "test->default",
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test",
"junit" % "junit" % "4.5" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.26",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test->default",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test",
"com.h2database" % "h2" % "1.2.138"
) ++ super.libraryDependencies
}
8 changes: 3 additions & 5 deletions lift_basic/src/main/scala/code/lib/DependencyFactory.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package code {
package lib {
package code
package lib

import net.liftweb._
import http._
import util._
import common._
import _root_.java.util.Date
import java.util.Date

/**
* A factory for generating new instances of Date. You can create
Expand Down Expand Up @@ -53,5 +53,3 @@ sealed abstract class Changer {
}
}
*/
}
}
12 changes: 5 additions & 7 deletions lift_basic/src/main/scala/code/model/User.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package code {
package model {
package code
package model

import _root_.net.liftweb.mapper._
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import net.liftweb.mapper._
import net.liftweb.util._
import net.liftweb.common._

/**
* The singleton that has methods for accessing the database
Expand Down Expand Up @@ -34,5 +34,3 @@ class User extends MegaProtoUser[User] {
}
}

}
}
14 changes: 6 additions & 8 deletions lift_basic/src/main/scala/code/snippet/HelloWorld.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package code {
package snippet {
package code
package snippet

import _root_.scala.xml.{NodeSeq, Text}
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import _root_.java.util.Date
import scala.xml.{NodeSeq, Text}
import net.liftweb.util._
import net.liftweb.common._
import java.util.Date
import code.lib._
import Helpers._

Expand All @@ -21,5 +21,3 @@ class HelloWorld {
*/
}

}
}
4 changes: 2 additions & 2 deletions lift_basic/src/test/scala/LiftConsole.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _root_.bootstrap.liftweb.Boot
import _root_.scala.tools.nsc.MainGenericRunner
import bootstrap.liftweb.Boot
import scala.tools.nsc.MainGenericRunner

object LiftConsole {
def main(args : Array[String]) {
Expand Down
6 changes: 3 additions & 3 deletions lift_basic/src/test/scala/RunWebApp.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _root_.org.mortbay.jetty.Connector
import _root_.org.mortbay.jetty.Server
import _root_.org.mortbay.jetty.webapp.WebAppContext
import org.mortbay.jetty.Connector
import org.mortbay.jetty.Server
import org.mortbay.jetty.webapp.WebAppContext
import org.mortbay.jetty.nio._

object RunWebApp extends Application {
Expand Down
16 changes: 8 additions & 8 deletions lift_basic/src/test/scala/code/AppTest.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package code

import _root_.java.io.File
import _root_.junit.framework._
import java.io.File
import junit.framework._
import Assert._
import _root_.scala.xml.XML
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import scala.xml.XML
import net.liftweb.util._
import net.liftweb.common._

object AppTest {
def suite: Test = {
Expand All @@ -14,7 +14,7 @@ object AppTest {
}

def main(args : Array[String]) {
_root_.junit.textui.TestRunner.run(suite)
junit.textui.TestRunner.run(suite)
}
}

Expand Down Expand Up @@ -52,11 +52,11 @@ class AppTest extends TestCase("app") {
try {
XML.loadFile(file)
} catch {
case e: _root_.org.xml.sax.SAXParseException => failed = file :: failed
case e: org.xml.sax.SAXParseException => failed = file :: failed
}
}
if (file.isFile && handledXHtml(file.getName)) {
PCDataXmlParser(new _root_.java.io.FileInputStream(file.getAbsolutePath)) match {
PCDataXmlParser(new java.io.FileInputStream(file.getAbsolutePath)) match {
case Full(_) => // file is ok
case _ => failed = file :: failed
}
Expand Down
2 changes: 1 addition & 1 deletion lift_basic/src/test/scala/code/XmlSourceSpecs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object XmlSourceSpecs extends Specification {
try {
XML.loadFile(file)
} catch {
case e: _root_.org.xml.sax.SAXParseException => failed = file :: failed
case e: org.xml.sax.SAXParseException => failed = file :: failed
}
}
if (file.isFile && handledXHtml(file.getName)) {
Expand Down
7 changes: 2 additions & 5 deletions lift_basic/src/test/scala/code/snippet/HelloWorldTest.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package code {
package snippet {
package code
package snippet

import org.specs._
import org.specs.runner.JUnit4
Expand Down Expand Up @@ -41,6 +41,3 @@ object HelloWorldTestSpecs extends Specification {
}
}
}

}
}
10 changes: 5 additions & 5 deletions lift_blank/project/build/LiftProject.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt._

class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
val liftVersion = "2.2"
val liftVersion = "2.3-SNAPSHOT"

// uncomment the following if you want to use the snapshot repo
// val scalatoolsSnapshot = ScalaToolsSnapshots
Expand All @@ -11,10 +11,10 @@ class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
// override def scanDirectories = Nil

override def libraryDependencies = Set(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default",
"junit" % "junit" % "4.5" % "test->default",
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test",
"junit" % "junit" % "4.5" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.26",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test->default"
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test"
) ++ super.libraryDependencies
}
8 changes: 3 additions & 5 deletions lift_blank/src/main/scala/code/lib/DependencyFactory.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package code {
package lib {
package code
package lib

import net.liftweb._
import http._
import util._
import common._
import _root_.java.util.Date
import java.util.Date

/**
* A factory for generating new instances of Date. You can create
Expand Down Expand Up @@ -53,5 +53,3 @@ sealed abstract class Changer {
}
}
*/
}
}
14 changes: 6 additions & 8 deletions lift_blank/src/main/scala/code/snippet/HelloWorld.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package code {
package snippet {
package code
package snippet

import _root_.scala.xml.{NodeSeq, Text}
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import _root_.java.util.Date
import scala.xml.{NodeSeq, Text}
import net.liftweb.util._
import net.liftweb.common._
import java.util.Date
import code.lib._
import Helpers._

Expand All @@ -21,5 +21,3 @@ class HelloWorld {
*/
}

}
}
4 changes: 2 additions & 2 deletions lift_blank/src/test/scala/LiftConsole.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _root_.bootstrap.liftweb.Boot
import _root_.scala.tools.nsc.MainGenericRunner
import bootstrap.liftweb.Boot
import scala.tools.nsc.MainGenericRunner

object LiftConsole {
def main(args : Array[String]) {
Expand Down
6 changes: 3 additions & 3 deletions lift_blank/src/test/scala/RunWebApp.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _root_.org.mortbay.jetty.Connector
import _root_.org.mortbay.jetty.Server
import _root_.org.mortbay.jetty.webapp.WebAppContext
import org.mortbay.jetty.Connector
import org.mortbay.jetty.Server
import org.mortbay.jetty.webapp.WebAppContext
import org.mortbay.jetty.nio._

object RunWebApp extends Application {
Expand Down
16 changes: 8 additions & 8 deletions lift_blank/src/test/scala/code/AppTest.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package code

import _root_.java.io.File
import _root_.junit.framework._
import java.io.File
import junit.framework._
import Assert._
import _root_.scala.xml.XML
import _root_.net.liftweb.util._
import _root_.net.liftweb.common._
import scala.xml.XML
import net.liftweb.util._
import net.liftweb.common._

object AppTest {
def suite: Test = {
Expand All @@ -14,7 +14,7 @@ object AppTest {
}

def main(args : Array[String]) {
_root_.junit.textui.TestRunner.run(suite)
junit.textui.TestRunner.run(suite)
}
}

Expand Down Expand Up @@ -52,11 +52,11 @@ class AppTest extends TestCase("app") {
try {
XML.loadFile(file)
} catch {
case e: _root_.org.xml.sax.SAXParseException => failed = file :: failed
case e: org.xml.sax.SAXParseException => failed = file :: failed
}
}
if (file.isFile && handledXHtml(file.getName)) {
PCDataXmlParser(new _root_.java.io.FileInputStream(file.getAbsolutePath)) match {
PCDataXmlParser(new java.io.FileInputStream(file.getAbsolutePath)) match {
case Full(_) => // file is ok
case _ => failed = file :: failed
}
Expand Down
2 changes: 1 addition & 1 deletion lift_blank/src/test/scala/code/XmlSourceSpecs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object XmlSourceSpecs extends Specification {
try {
XML.loadFile(file)
} catch {
case e: _root_.org.xml.sax.SAXParseException => failed = file :: failed
case e: org.xml.sax.SAXParseException => failed = file :: failed
}
}
if (file.isFile && handledXHtml(file.getName)) {
Expand Down
7 changes: 2 additions & 5 deletions lift_blank/src/test/scala/code/snippet/HelloWorldTest.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package code {
package snippet {
package code
package snippet

import org.specs._
import org.specs.runner.JUnit4
Expand Down Expand Up @@ -41,6 +41,3 @@ object HelloWorldTestSpecs extends Specification {
}
}
}

}
}
12 changes: 6 additions & 6 deletions lift_mvc/project/build/LiftProject.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt._

class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
val liftVersion = "2.2"
val liftVersion = "2.3-SNAPSHOT"

// uncomment the following if you want to use the snapshot repo
// val scalatoolsSnapshot = ScalaToolsSnapshots
Expand All @@ -11,12 +11,12 @@ class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) {
// override def scanDirectories = Nil

override def libraryDependencies = Set(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile->default",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default",
"junit" % "junit" % "4.5" % "test->default",
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test",
"junit" % "junit" % "4.5" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.26",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test->default",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test",
"com.h2database" % "h2" % "1.2.138"
) ++ super.libraryDependencies
}
13 changes: 5 additions & 8 deletions lift_mvc/src/main/scala/code/controller/RootController.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package code {
package controller {
package code
package controller

import _root_.net.liftweb.http._
import _root_.net.liftweb.util._
import _root_.java.util.Date
import net.liftweb.http._
import net.liftweb.util._
import java.util.Date
import code.lib._
import Helpers._

Expand All @@ -29,6 +29,3 @@ object RootController extends MVCHelper {
"#int_value" #> param
}
}

}
}
8 changes: 3 additions & 5 deletions lift_mvc/src/main/scala/code/lib/DependencyFactory.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package code {
package lib {
package code
package lib

import net.liftweb._
import http._
import util._
import common._
import _root_.java.util.Date
import java.util.Date

/**
* A factory for generating new instances of Date. You can create
Expand Down Expand Up @@ -53,5 +53,3 @@ sealed abstract class Changer {
}
}
*/
}
}
Loading

0 comments on commit 427d273

Please sign in to comment.