我目前使用的是Play版本2.1.1,正在尝试修改Build.scala。
缺省情况下,它会导入一个名为play.Project._的包
我一直在尝试找出这个包的API,这样我就可以定制我们的Build.scala文件。
我唯一拥有的就是这个链接:http://www.playframework.com/documentation/2.1.1/Build
我也试着从这里找到它:http://www.playframework.com/documentation/api/2.1.1/scala/index.html#package
谁能告诉我这个接口的位置?
发布于 2013-05-19 00:40:56
Build.scala使用PlayProject,如Play SBT documentation中所述。这个PlayProject本质上是一个sbt.Project,所以您应该仔细研究一下corresponding sbt API。PlayProject本身被定义为here (第147行):
lazy val PlayProject = PlayRuntimeProject("Play", "play")
.settings(
libraryDependencies := runtime,
sourceGenerators in Compile <+= sourceManaged in Compile map PlayVersion,
mappings in(Compile, packageSrc) <++= scalaTemplateSourceMappings,
parallelExecution in Test := false,
sourceGenerators in Compile <+= (dependencyClasspath in TemplatesCompilerProject in Runtime, packageBin in TemplatesCompilerProject in Compile, scalaSource in Compile, sourceManaged in Compile, streams) map ScalaTemplates
).dependsOn(SbtLinkProject, PlayExceptionsProject, TemplatesProject, IterateesProject, JsonProject)PlayRuntimeProject在同一文件中定义。
https://stackoverflow.com/questions/16626008
复制相似问题