1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Remove public.

This commit is contained in:
Cedric Beust 2015-12-12 01:09:52 +04:00
parent 78a95f1164
commit 4a545658da
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ package com.beust.kobalt.maven
import com.beust.kobalt.misc.Strings
open public class SimpleDep(open val mavenId: MavenId) : UnversionedDep(mavenId.groupId, mavenId.artifactId) {
open class SimpleDep(open val mavenId: MavenId) : UnversionedDep(mavenId.groupId, mavenId.artifactId) {
companion object {
fun create(id: String) = MavenId.create(id).let {
SimpleDep(it)

View file

@ -7,8 +7,8 @@ import java.io.File
* Represents a dependency that doesn't have a version: "org.testng:testng:". Such dependencies
* eventually resolve to the latest version of the artifact.
*/
open public class UnversionedDep(open val groupId: String, open val artifactId: String) {
open public fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean): String {
open class UnversionedDep(open val groupId: String, open val artifactId: String) {
open fun toMetadataXmlPath(fileSystem: Boolean = true, isLocal: Boolean): String {
return toDirectory("", fileSystem) + if (isLocal) "maven-metadata-local.xml" else "maven-metadata.xml"
}
@ -17,7 +17,7 @@ open public class UnversionedDep(open val groupId: String, open val artifactId:
* dependent path separator, otherwise, use '/' (used to create URL's). The returned
* string always ends with the path separator.
*/
public fun toDirectory(v: String, fileSystem: Boolean = true): String {
fun toDirectory(v: String, fileSystem: Boolean = true): String {
val sep = if (fileSystem) File.separator else "/"
val l = listOf(groupId.replace(".", sep), artifactId, v)
val result = Strings.Companion.join(sep, l)