1
1
/*
2
2
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
3
3
*/
4
- package twirl .compiler
4
+ package play . twirl .compiler
5
5
package test
6
6
7
7
import java .io ._
8
8
import org .specs2 .mutable ._
9
- import twirl .api .Html
9
+ import play . twirl .api .Html
10
10
11
11
object CompilerSpec extends Specification {
12
12
@@ -129,15 +129,15 @@ object Helper {
129
129
130
130
val twirlCompiler = TwirlCompiler
131
131
132
- val classloader = new URLClassLoader (Array (generatedClasses.toURI.toURL), Class .forName(" twirl.compiler.TwirlCompiler" ).getClassLoader)
132
+ val classloader = new URLClassLoader (Array (generatedClasses.toURI.toURL), Class .forName(" play. twirl.compiler.TwirlCompiler" ).getClassLoader)
133
133
134
134
// A list of the compile errors from the most recent compiler run
135
135
val compileErrors = new mutable.ListBuffer [CompilationError ]
136
136
137
137
val compiler = {
138
138
139
139
def additionalClassPathEntry : Option [String ] = Some (
140
- Class .forName(" twirl.compiler.TwirlCompiler" ).getClassLoader.asInstanceOf [URLClassLoader ].getURLs.map(_.getFile).mkString(" :" ))
140
+ Class .forName(" play. twirl.compiler.TwirlCompiler" ).getClassLoader.asInstanceOf [URLClassLoader ].getURLs.map(_.getFile).mkString(" :" ))
141
141
142
142
val settings = new Settings
143
143
val scalaObjectSource = Class .forName(" scala.ScalaObject" ).getProtectionDomain.getCodeSource
@@ -163,7 +163,7 @@ object Helper {
163
163
164
164
def compile [T ](templateName : String , className : String ): T = {
165
165
val templateFile = new File (sourceDir, templateName)
166
- val Some (generated) = twirlCompiler.compile(templateFile, sourceDir, generatedDir, " twirl.api.HtmlFormat" )
166
+ val Some (generated) = twirlCompiler.compile(templateFile, sourceDir, generatedDir, " play. twirl.api.HtmlFormat" )
167
167
168
168
val mapper = GeneratedSource (generated)
169
169
0 commit comments