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

io.quarkus.launcher.shaded.org.eclipse.aether.util.filter.PatternInclusionsDependencyFilter Maven / Gradle / Ivy

package org.eclipse.aether.util.filter;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

import java.util.Collection;

import org.eclipse.aether.version.VersionScheme;

/**
 * A simple filter to include artifacts from a list of patterns. The artifact pattern syntax is of the form:
 * 
 * 
 * [groupId]:[artifactId]:[extension]:[version]
 * 
*

* Where each pattern segment is optional and supports full and partial * wildcards. An empty pattern * segment is treated as an implicit wildcard. Version can be a range in case a {@link VersionScheme} is specified. *

*

* For example, org.eclipse.* would match all artifacts whose group id started with * org.eclipse. , and :::*-SNAPSHOT would match all snapshot artifacts. *

*/ public final class PatternInclusionsDependencyFilter extends AbstractPatternDependencyFilter { /** * Creates a new filter using the specified patterns. * * @param patterns The include patterns, may be {@code null} or empty to include no artifacts. */ public PatternInclusionsDependencyFilter( final String... patterns ) { super( patterns ); } /** * Creates a new filter using the specified patterns. * * @param versionScheme To be used for parsing versions/version ranges. If {@code null} and pattern specifies a * range no artifact will be included. * @param patterns The include patterns, may be {@code null} or empty to include no artifacts. */ public PatternInclusionsDependencyFilter( final VersionScheme versionScheme, final String... patterns ) { super( versionScheme, patterns ); } /** * Creates a new filter using the specified patterns. * * @param patterns The include patterns, may be {@code null} or empty to include no artifacts. */ public PatternInclusionsDependencyFilter( final Collection patterns ) { super( patterns ); } /** * Creates a new filter using the specified patterns and {@link VersionScheme} . * * @param versionScheme To be used for parsing versions/version ranges. If {@code null} and pattern specifies a * range no artifact will be included. * @param patterns The include patterns, may be {@code null} or empty to include no artifacts. */ public PatternInclusionsDependencyFilter( final VersionScheme versionScheme, final Collection patterns ) { super( versionScheme, patterns ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy