mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
--resolve fixes.
This commit is contained in:
parent
3ed773ebcb
commit
9096fb8348
2 changed files with 6 additions and 5 deletions
|
@ -145,9 +145,6 @@ private class Main @Inject constructor(
|
|||
jc.usage()
|
||||
} else if (args.serverMode) {
|
||||
server.run()
|
||||
} else if (args.dependency != null) {
|
||||
// --resolve
|
||||
resolveDependency.run(args.dependency as String)
|
||||
} else {
|
||||
if (! buildFile.exists()) {
|
||||
error(buildFile.path.toFile().path + " does not exist")
|
||||
|
@ -162,7 +159,10 @@ private class Main @Inject constructor(
|
|||
|
||||
log(2, "Final list of repos:\n " + Kobalt.repos.joinToString("\n "))
|
||||
|
||||
if (args.tasks) {
|
||||
if (args.dependency != null) {
|
||||
// --resolve
|
||||
resolveDependency.run(args.dependency as String)
|
||||
} else if (args.tasks) {
|
||||
//
|
||||
// List of tasks
|
||||
//
|
||||
|
|
|
@ -19,6 +19,7 @@ open public class UnversionedDep(open val groupId: String, open val artifactId:
|
|||
public fun toDirectory(v: String, fileSystem: Boolean = true): String {
|
||||
val sep = if (fileSystem) File.separator else "/"
|
||||
val l = listOf(groupId.replace(".", sep), artifactId, v)
|
||||
return Strings.Companion.join(sep, l)
|
||||
val result = Strings.Companion.join(sep, l)
|
||||
return if (result.endsWith("/")) result else result + "/"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue