Skip to content
Browse files

add package

  • Loading branch information...
1 parent e108243 commit 531dfea3be14889752e8e1bec32e17d7cd4c8759 @jlarmstrong jlarmstrong committed Feb 2, 2012
View
3 src/main/g8/default.properties
@@ -1,6 +1,7 @@
organization=com.example
name=scalatra-sbt-prototype
version=0.1.0-SNAPSHOT
-scala_version=2.9.1
servlet_name=MyScalatraServlet
+package=com.example.app
+scala_version=2.9.1
View
2 src/main/g8/src/main/scala/$servlet_name$.scala
@@ -1,3 +1,5 @@
+package $package$
+
import org.scalatra._
import scalate.ScalateSupport
View
12 src/main/g8/src/main/webapp/WEB-INF/web.xml
@@ -5,12 +5,22 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns
<servlet>
<servlet-name>scalatra</servlet-name>
<servlet-class>
- $servlet_name$
+ $package$.$servlet_name$
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>scalatra</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
+
+ <!-- Static Asset Serving Example -->
+ <!--
+ <servlet-mapping>
+ <servlet-name>default</servlet-name>
+ <url-pattern>/img/*</url-pattern>
+ <url-pattern>/css/*</url-pattern>
+ <url-pattern>/js/*</url-pattern>
+ </servlet-mapping>
+ -->
</web-app>
View
2 src/test/scala/MyScalatraFilterSuite.scala
@@ -1,7 +1,9 @@
+
import org.scalatra._
import org.scalatra.test.scalatest._
import org.scalatest.matchers._
+
class MyScalatraFilterSuite extends ScalatraFunSuite with ShouldMatchers {
addFilter(classOf[$servlet_name$], "/*")

0 comments on commit 531dfea

Please sign in to comment.
Something went wrong with that request. Please try again.