Permalink
Browse files

Merge pull request #5 from jlarmstrong/master

Added package namespace handling for g8
  • Loading branch information...
2 parents e108243 + b14c7ed commit e1e16dd37cf40e9a99a91ec9e6f2c798569064bb @jlarmstrong jlarmstrong committed Feb 3, 2012
@@ -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
@@ -1,3 +1,5 @@
+package $package$
+
import org.scalatra._
import scalate.ScalateSupport
@@ -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>
@@ -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 e1e16dd

Please sign in to comment.