mirror of https://github.com/sbt/sbt.git
Remove support for deprecated alternative to project/ directory name.
This commit is contained in:
parent
125727ba83
commit
6c5cafb55b
|
|
@ -46,18 +46,11 @@ object BuildPaths
|
|||
def outputDirectory(base: File) = base / DefaultTargetName
|
||||
|
||||
def projectStandard(base: File) = base / "project"
|
||||
def projectHidden(base: File) = base / ConfigDirectoryName
|
||||
def selectProjectDir(base: File, log: Logger) =
|
||||
{
|
||||
val a = projectHidden(base)
|
||||
val b = projectStandard(base)
|
||||
if(a.exists)
|
||||
{
|
||||
log.warn("Alternative project directory " + ConfigDirectoryName + " (" + a + ") has been deprecated since sbt 0.12.0.\n Please use the standard location: " + b)
|
||||
a
|
||||
}
|
||||
else b
|
||||
}
|
||||
|
||||
@deprecated("Use projectStandard. The alternative project directory location has been removed.", "0.13.0")
|
||||
def projectHidden(base: File) = projectStandard(base)
|
||||
@deprecated("Use projectStandard. The alternative project directory location has been removed.", "0.13.0")
|
||||
def selectProjectDir(base: File, log: Logger) = projectStandard(base)
|
||||
|
||||
final val PluginsDirectoryName = "plugins"
|
||||
final val DefaultTargetName = "target"
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ object Load
|
|||
def loadUnit(uri: URI, localBase: File, s: State, config: LoadBuildConfiguration): BuildUnit =
|
||||
{
|
||||
val normBase = localBase.getCanonicalFile
|
||||
val defDir = selectProjectDir(normBase, config.log)
|
||||
val defDir = projectStandard(normBase)
|
||||
|
||||
val plugs = plugins(defDir, s, config)
|
||||
val defNames = analyzed(plugs.fullClasspath) flatMap findDefinitions
|
||||
|
|
|
|||
Loading…
Reference in New Issue