dos2unix formatting

This commit is contained in:
Jonas Bonér 2010-01-05 10:27:14 +01:00
parent ba8b35d698
commit 7366b359a0
10 changed files with 73 additions and 111 deletions

0
akka-comet/src/main/scala/AkkaServlet.scala Executable file → Normal file
View file

0
akka-core/src/main/scala/actor/ActorRegistry.scala Executable file → Normal file
View file

0
akka-core/src/main/scala/remote/RemoteServer.scala Executable file → Normal file
View file

View file

@ -1,38 +0,0 @@
package se.scalablesolutions.akka.remote
import se.scalablesolutions.akka.actor.Actor
object ActorShutdownTest {
def main(args: Array[String]) {
class MyActor extends Actor {
def receive = {
case "test" => println("received test")
case m@_ => println("received unknown message " + m)
}
}
val myActor = new MyActor
myActor.start
myActor.send("test")
myActor.stop
}
}
// case 2
object RemoteServerAndClusterShutdownTest {
def main(args: Array[String]) {
val s1 = new RemoteServer
val s2 = new RemoteServer
val s3 = new RemoteServer
s1.start("localhost", 9999)
s2.start("localhost", 9998)
s3.start("localhost", 9997)
Thread.sleep(5000)
s1.shutdown
s2.shutdown
s3.shutdown
}
}

0
akka-rest/src/main/scala/ActorComponentProvider.scala Executable file → Normal file
View file

View file

0
akka-rest/src/main/scala/AkkaServlet.scala Executable file → Normal file
View file

View file

@ -1,28 +1,28 @@
import _root_.org.mortbay.jetty.Connector import _root_.org.mortbay.jetty.Connector
import _root_.org.mortbay.jetty.Server import _root_.org.mortbay.jetty.Server
import _root_.org.mortbay.jetty.webapp.WebAppContext import _root_.org.mortbay.jetty.webapp.WebAppContext
object RunWebApp extends Application { object RunWebApp extends Application {
val server = new Server(8080) val server = new Server(8080)
val context = new WebAppContext() val context = new WebAppContext()
context.setServer(server) context.setServer(server)
context.setContextPath("/") context.setContextPath("/")
context.setWar("src/main/webapp") context.setWar("src/main/webapp")
server.addHandler(context) server.addHandler(context)
try { try {
println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP") println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP")
server.start() server.start()
while (System.in.available() == 0) { while (System.in.available() == 0) {
Thread.sleep(5000) Thread.sleep(5000)
} }
server.stop() server.stop()
server.join() server.join()
} catch { } catch {
case exc : Exception => { case exc : Exception => {
exc.printStackTrace() exc.printStackTrace()
System.exit(100) System.exit(100)
} }
} }
} }

0
akka-util/src/main/scala/HashCode.scala Executable file → Normal file
View file

View file

@ -1,45 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Atmosphere Scala REST Chat</title> <title>Atmosphere Scala REST Chat</title>
<link rel="stylesheet" href="stylesheets/default.css" type="text/css" /> <link rel="stylesheet" href="stylesheets/default.css" type="text/css" />
<script type="text/javascript" src="javascripts/prototype.js"></script> <script type="text/javascript" src="javascripts/prototype.js"></script>
<script type="text/javascript" src="javascripts/behaviour.js"></script> <script type="text/javascript" src="javascripts/behaviour.js"></script>
<script type="text/javascript" src="javascripts/moo.fx.js"></script> <script type="text/javascript" src="javascripts/moo.fx.js"></script>
<script type="text/javascript" src="javascripts/moo.fx.pack.js"></script> <script type="text/javascript" src="javascripts/moo.fx.pack.js"></script>
<script type="text/javascript" src="javascripts/application.js"></script> <script type="text/javascript" src="javascripts/application.js"></script>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<div id="container-inner"> <div id="container-inner">
<div id="header"> <div id="header">
<h1>Atmosphere REST Chat</h1> <h1>Atmosphere REST Chat</h1>
</div> </div>
<div id="main"> <div id="main">
<div id="display"> <div id="display">
</div> </div>
<div id="form"> <div id="form">
<div id="system-message">Please input your name:</div> <div id="system-message">Please input your name:</div>
<div id="login-form"> <div id="login-form">
<input id="login-name" type="text" /> <input id="login-name" type="text" />
<br /> <br />
<input id="login-button" type="button" value="Login" /> <input id="login-button" type="button" value="Login" />
</div> </div>
<div id="message-form" style="display: none;"> <div id="message-form" style="display: none;">
<div> <div>
<textarea id="message" name="message" rows="2" cols="40"></textarea> <textarea id="message" name="message" rows="2" cols="40"></textarea>
<br /> <br />
<input id="post-button" type="button" value="Post Message" /> <input id="post-button" type="button" value="Post Message" />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<iframe id="comet-frame" style="display: none;"></iframe> <iframe id="comet-frame" style="display: none;"></iframe>
</body> </body>
</html> </html>