-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
35 lines (24 loc) · 971 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import AssemblyKeys._
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
seq(assemblySettings: _*)
name := "IRCBalloon"
version := "0.8.1-fix2"
scalaVersion := "2.10.4"
fork in run := true
resolvers ++= Seq(
"gettext-commons-site" at "http://gettext-commons.googlecode.com/svn/maven-repository"
)
libraryDependencies ++= Seq(
"org.pircbotx" % "pircbotx" % "1.9",
"com.typesafe.akka" %% "akka-actor" % "2.1.2",
"org.xnap.commons" % "gettext-commons" % "0.9.6"
)
TaskKey[Unit]("xgettext") <<= (sources in Compile, name) map { (sources, name) =>
<x>xgettext --from-code=utf-8 -L java -ktrc:1c,2 -ktrnc:1c,2,3 -ktr
-kmarktr -ktrn:1,2 -o po/{name}.pot {sources.mkString(" ")}</x> !
}
TaskKey[Unit]("msgfmt") <<= (classDirectory in Compile, name) map { (target, name) =>
import java.io.File
val poFiles = (PathFinder(new File("po")) ** "*.po").get
<x>msgfmt --java2 -d {target} -r app.i18n.Messages {poFiles.mkString(" ")}</x> !
}