Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created March 16, 2011 07:17
Show Gist options
  • Select an option

  • Save fivetwentysix/872137 to your computer and use it in GitHub Desktop.

Select an option

Save fivetwentysix/872137 to your computer and use it in GitHub Desktop.
pma:chat pma$ mvn jetty:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building chat Project
[INFO] task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [resources:copy-resources {execution: default-copy-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [yuicompressor:compress {execution: default}]
[INFO] nb warnings: 0, nb errors: 0
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Checking for multiple versions of scala
[INFO] /Users/pma/Documents/chat/src/main/scala:-1: info: compiling
[INFO] Compiling 6 source files to /Users/pma/Documents/chat/target/classes at 1300259841741
[ERROR] /Users/pma/Documents/chat/src/main/scala/chat/comet/Chat.scala:2: error: '{' expected but ';' found.
[INFO] package comet
[INFO] ^
[ERROR] /Users/pma/Documents/chat/src/main/scala/chat/comet/Chat.scala:19: error: '}' expected but eof found.
[INFO] }
[INFO] ^
[ERROR] /Users/pma/Documents/chat/src/main/scala/chat/comet/ChatServer.scala:2: error: '{' expected but ';' found.
[INFO] package comet
[INFO] ^
[ERROR] /Users/pma/Documents/chat/src/main/scala/chat/comet/ChatServer.scala:16: error: '}' expected but eof found.
[INFO] }
[INFO] ^
[ERROR] four errors found
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Mar 16 15:17:23 HKT 2011
[INFO] Final Memory: 31M/81M
[INFO] ------------------------------------------------------------------------
pma:chat pma$
package code
package comet
import net.liftweb._
import http._
import util._
import Helpers._
class Chat extends CometActor with CometListener {
private var msgs: Vector[String] = Vector()
def registerWith = ChatServer
override def lowPriority() = {
case v: Vector[String] => msgs = v; reRender()
}
def render = "li *" #> msgs & ClearClearable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment