From d3d5bd4344e0cac23eda536144c62d08429f2fca Mon Sep 17 00:00:00 2001 From: Random Hacker Date: Mon, 19 Dec 2011 23:49:51 +0100 Subject: scala: Split Main.scala/run.sh --- ebus-scala/Main.scala | 6 +----- ebus-scala/run.sh | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100755 ebus-scala/run.sh (limited to 'ebus-scala') diff --git a/ebus-scala/Main.scala b/ebus-scala/Main.scala index 63ec98e..da54e71 100755 --- a/ebus-scala/Main.scala +++ b/ebus-scala/Main.scala @@ -1,6 +1,3 @@ -#!/bin/sh -exec scala "$0" "$@" -!# import Stream._ import java.io.{InputStream, EOFException} import java.net.{InetAddress, InetSocketAddress, Socket} @@ -319,7 +316,7 @@ class EbusL7BroadcastPacket(l2Packet: EbusL2BroadcastPacket) extends EbusL7Packe /// Application object App { - val ebusDefinition = EbusDefinition.fromFile("/home/yvesf/vcs/ebus/ebus/ebus-xml/ebus.xml") + val ebusDefinition = EbusDefinition.fromFile("../ebus-xml/ebus.xml") var source: InputStream = null def println(msg : Any) { @@ -408,4 +405,3 @@ HOST PORT } } -App.main(args) diff --git a/ebus-scala/run.sh b/ebus-scala/run.sh new file mode 100755 index 0000000..6b137eb --- /dev/null +++ b/ebus-scala/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh +exec scala "$0" "$@" +#! +App.main(args) -- cgit v1.2.1