scalatra-sbt

How can one change the location of the “webapp” directory for a Scalatra application?

烂漫一生 提交于 2019-12-22 05:57:08
问题 By default, Scalatra expects the "webapp" directory to be at src/main/webapp . How could that be changed to, e.g., content/doc-root ? sbt allows for customizing its default directories using something like the following: scalaSource <<= (baseDirectory)(_ / "src") So I assume it's just a matter of knowing the right "configuration key" to use... 回答1: @Kelsey Gilmore-Innis has the right answer, but since it's not accepted let's break it, break it, break it down. First, I'm assuming you're

How can one change the location of the “webapp” directory for a Scalatra application?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 08:49:51
By default, Scalatra expects the "webapp" directory to be at src/main/webapp . How could that be changed to, e.g., content/doc-root ? sbt allows for customizing its default directories using something like the following: scalaSource <<= (baseDirectory)(_ / "src") So I assume it's just a matter of knowing the right "configuration key" to use... Eugene Yokota @Kelsey Gilmore-Innis has the right answer, but since it's not accepted let's break it, break it, break it down. First, I'm assuming you're following Getting started guide to install Scalatra using g8 . Hopefully the same version I just got

How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation?

无人久伴 提交于 2019-11-27 10:38:51
I have noticed a strange behavior of my scala compiler. It occasionally throws an OutOfMemoryError when compiling a class. Here's the error message: [info] Compiling 1 Scala source to /Users/gruetter/Workspaces/scala/helloscala/target/scala-2.9.0/test-classes... java.lang.OutOfMemoryError: PermGen space Error during sbt execution: java.lang.OutOfMemoryError: PermGen space It only happens once in a while and the error is usually not thrown on the subsequent compile run. I use Scala 2.9.0 and compile via SBT. Does anybody have a clue as to what might be the cause for this error? Thanks in

How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation?

眉间皱痕 提交于 2019-11-26 17:57:32
问题 I have noticed a strange behavior of my scala compiler. It occasionally throws an OutOfMemoryError when compiling a class. Here's the error message: [info] Compiling 1 Scala source to /Users/gruetter/Workspaces/scala/helloscala/target/scala-2.9.0/test-classes... java.lang.OutOfMemoryError: PermGen space Error during sbt execution: java.lang.OutOfMemoryError: PermGen space It only happens once in a while and the error is usually not thrown on the subsequent compile run. I use Scala 2.9.0 and