src/java/fr/jayasoft/ivy/DefaultDependencyDescriptor.java
/**
     * Replaces fallback patterns with correct values if fallback pattern exists.
     * @param pattern pattern to look for
     * @param conf configuration mapping from dependency element
     * @param moduleConfiguration module's configuration to use for replacement
     * @return Replaced string if pattern matched. Otherwise null.
     */
Replaces fallback patterns with correct values if fallback pattern exists.
@param pattern pattern to look for
@param conf configuration mapping from dependency element
@param moduleConfiguration module's configuration to use for replacement
@return Replaced string if pattern matched. Otherwise null.
Replaces fallback patterns with correct values if fallback pattern exists . @param pattern pattern to look for @param conf configuration mapping from dependency element @param moduleConfiguration module ' s configuration to use for replacement @return Replaced string if pattern matched . Otherwise null .
protected static String replaceFallbackConfigurationPattern(final Pattern pattern, final String conf, final String moduleConfiguration) {
        Matcher matcher = pattern.matcher(conf);
        if (matcher.matches()) {
            if (matcher.group(1) != null) {
                return moduleConfiguration+matcher.group(1);
            } else {
                return moduleConfiguration;
            }
        }
        return null;
    }
protected static String replaceFallbackConfigurationPattern ( final Pattern pattern , final String conf , final String moduleConfiguration ) { Matcher matcher = pattern . matcher ( conf ) ; if ( matcher . matches ( ) ) { if ( matcher . group ( 1 ) != null ) { return moduleConfiguration + matcher . group ( 1 ) ; } else { return moduleConfiguration ; } } return null ; }
Replaces fallback patterns with correct values if fallback pattern exists.
Replaces fallback patterns with correct values if fallback pattern exists .