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

main.name.remal.gradle_plugins.plugins.merge_resources.BaseResourceMerger.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.plugins.merge_resources

import name.remal.gradle_plugins.dsl.utils.PathMatcher

abstract class BaseResourceMerger(final override val pattern: String) : ResourceMerger {

    private val caseSensitivePatternMatcher = PathMatcher(pattern, true)
    private val caseInsensitivePatternMatcher = PathMatcher(pattern, false)

    final override fun getPatternMatcher(isCaseSensitive: Boolean) = if (isCaseSensitive) {
        caseSensitivePatternMatcher
    } else {
        caseInsensitivePatternMatcher
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy