All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.git.GitRepository.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.git

/**
 * Coordinates for a remote repository.
 *
 * @property type Type of repository (source of information)
 * @property name Name of the repository
 * @property remote Remote URL-ish for the repository.
 * @property user User. Blank or `null` when no authorisation is needed.
 * @property password Password for the user
 */
class GitRepository(
        val type: String,
        val name: String,
        val remote: String,
        val user: String?,
        val password: String?
) {
    val id: String = (type + "_" + name + "_" + remote).replace("[:.\\\\/@]".toRegex(), "_")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy