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

Commit

Permalink
Added assembly task
Browse files Browse the repository at this point in the history
  • Loading branch information
mslinn committed Feb 3, 2012
2 parents 8fb2aa3 + 4b7edfe commit ca89ec7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
18 changes: 9 additions & 9 deletions build.sbt
@@ -1,25 +1,25 @@
// see https://github.com/sbt/sbt-assembly
import AssemblyKeys._ // put this at the top of the file

organization := "Micronautics Research"

name := "MeetupRoll"

version := "0.1-SNAPSHOT"
version := "0.1"

scalacOptions ++= Seq("-deprecation")

resolvers ++= Seq(
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases",
"Scala-Tools Snapshots" at "http://scala-tools.org/repo-snapshots",
"Scala Tools Releases" at "http://scala-tools.org/repo-releases"
"Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases",
ScalaToolsSnapshots // ScalaToolsReleases is included by default
)

libraryDependencies ++= Seq(
"com.github.scala-incubator.io" %% "scala-io-core" % "latest.integration" % "compile" withSources(),
"com.github.scala-incubator.io" %% "scala-io-file" % "latest.integration" % "compile" withSources(),
"javax.mail" % "mail" % "latest.milestone" % "compile" withSources(),
"org.scalatest" %% "scalatest" % "latest.integration" % "test" withSources()
"com.github.scala-incubator.io" %% "scala-io-core" % "latest.milestone" withSources(),
"com.github.scala-incubator.io" %% "scala-io-file" % "latest.milestone" withSources(),
"javax.mail" % "mail" % "latest.integration" withSources(),
"org.scalatest" %% "scalatest" % "latest.milestone" % "test" withSources()
)

seq(assemblySettings: _*)
2 changes: 2 additions & 0 deletions run
@@ -0,0 +1,2 @@
#!/bin/bash
java -cp target/MeetupRoll-assembly-0.1.jar com.micronautics.akka.dispatch.future.Map
1 change: 1 addition & 0 deletions run.cmd
@@ -0,0 +1 @@
java -jar target/MeetupRoll-assembly-0.1.jar com.micronautics.akka.dispatch.future.Map
5 changes: 4 additions & 1 deletion src/main/scala/com/micronautics/meetupRoll/MeetupRoll.scala
Expand Up @@ -34,7 +34,10 @@ object MeetupRoll extends App {
private def readProps = {
val properties = new Properties()
val in = MeetupRoll.getClass().getClassLoader().getResourceAsStream("meetup.properties")
if (in!=null) {
if (in==null) {
System.err.println("Could not read meetup.properties, aborting.");
System.exit(1);
} else {
properties.load(in)
in.close()
}
Expand Down

0 comments on commit ca89ec7

Please sign in to comment.