1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-29 17:38:12 -07:00

/v1/getDependencyGraph?projectRoot=...

Deprecated buildFile=.
This commit is contained in:
Cedric Beust 2017-03-26 07:32:56 -07:00
parent 5c7d6a20cb
commit 043fc31c9f
4 changed files with 46 additions and 27 deletions

View file

@ -126,7 +126,7 @@ private class Main @Inject constructor(
// val md5 = Md5.toMd5(file)
// val md52 = MessageDigest.getInstance("MD5").digest(file.readBytes()).toHexString()
var result = 0
val p = if (args.buildFile != null) File(args.buildFile) else findBuildFile()
val p = if (args.buildFile != null) File(args.buildFile) else KFiles.findBuildFile()
args.buildFile = p.absolutePath
val buildFile = BuildFile(Paths.get(p.absolutePath), p.name)
@ -219,19 +219,6 @@ private class Main @Inject constructor(
}
}
private fun findBuildFile(): File {
val deprecatedLocation = File(Constants.BUILD_FILE_NAME)
val result: File =
if (deprecatedLocation.exists()) {
warn(Constants.BUILD_FILE_NAME + " is in a deprecated location, please move it to "
+ Constants.BUILD_FILE_DIRECTORY)
deprecatedLocation
} else {
File(KFiles.joinDir(Constants.BUILD_FILE_DIRECTORY, Constants.BUILD_FILE_NAME))
}
return result
}
private fun cleanUp() {
pluginInfo.cleanUp()
taskManager.cleanUp()