所以我有一个这样的目录结构
EntireProject/
-project/
-mainProject/
-subProject/
-miscDir/
这是我的 Build.scala 文件
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val appName = "SampleProject"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
// Add your project dependencies here,
jdbc,
anorm
)
val subProject = Project("sub-project",file("subProject"))
val main = play.Project(appName, appVersion, appDependencies, path = file("mainProject"))
.dependsOn(subProject)
}
当我运行“play run”时,play 也会运行子项目中的 App 对象。那么如何防止子项目被执行呢?