Examples of Exclusion


Examples of org.apache.maven.model.Exclusion

                        Iterator exclItr = d.getExclusions().iterator();

                        while ( exclItr.hasNext() )
                        {
                            Exclusion e = (Exclusion) exclItr.next();
                            exclusions.add( e.getGroupId() + ":" + e.getArtifactId() );
                        }
                        ExcludesArtifactFilter eaf = new ExcludesArtifactFilter( exclusions );
                        artifact.setDependencyFilter( eaf );
                    }
                    else
                    {
                        artifact.setDependencyFilter( null );
                    }
                    map.put( d.getManagementKey(), artifact );
                }
                catch ( InvalidVersionSpecificationException e )
                {
                    throw new ProjectBuildingException( projectId, "Unable to parse version '" + d.getVersion() +
                        "' for dependency '" + d.getManagementKey() + "': " + e.getMessage(), e );
                }
            }
        }
        else if ( map == null )
        {
View Full Code Here

Examples of org.apache.maven.model.Exclusion

            }

            Counter innerCount = new Counter( counter.getDepth() + 1 );
            while ( it.hasNext() )
            {
                Exclusion value = (Exclusion) it.next();
                Element el;
                if ( ( elIt != null ) && elIt.hasNext() )
                {
                    el = (Element) elIt.next();
                    if ( !elIt.hasNext() )
View Full Code Here

Examples of org.apache.maven.model.Exclusion

                art.setFile(new File(dependency.getSystemPath()));
            }

            List exclusions = new ArrayList();
            for (Iterator j = dependency.getExclusions().iterator(); j.hasNext();) {
                Exclusion e = (Exclusion)j.next();
                exclusions.add(e.getGroupId() + ":" + e.getArtifactId()); //$NON-NLS-1$
            }

            ArtifactFilter newFilter = new ExcludesArtifactFilter(exclusions);

            art.setDependencyFilter(newFilter);
View Full Code Here

Examples of org.apache.maven.model.Exclusion

        if ( isNotEmpty( dep.getExclusions() ) )
        {
            Iterator it = dep.getExclusions().iterator();
            while ( it.hasNext() )
            {
                Exclusion exclusion = (Exclusion) it.next();
                String exkey = toKey( exclusion );
                out.println( "      addExclusion( dep, \"" + exkey + "\" );" );
            }
        }
View Full Code Here

Examples of org.eclipse.aether.graph.Exclusion

        return result;
    }

    private Exclusion convert( org.apache.maven.model.Exclusion exclusion )
    {
        return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" );
    }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.filter.FilterItem.Exclusion

    }

    @Test
    public void should_be_configured_with_trimmed_coma_separated_tags_fed_into_constructor() {
        final Filter filter = new Filter("    tag1 , tag2,tag3,~tag4    ");
        assertThat(filter.getFilterTags(), arrayContaining(new Inclusion("tag1"), new Inclusion("tag2"), new Inclusion("tag3"), new Exclusion("~tag4")));
    }
View Full Code Here

Examples of org.sonatype.aether.graph.Exclusion

        return result;
    }

    private static Exclusion toExclusion( org.apache.maven.model.Exclusion exclusion )
    {
        return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" );
    }
View Full Code Here

Examples of org.sonatype.aether.graph.Exclusion

        return result;
    }

    private Exclusion convert( org.apache.maven.model.Exclusion exclusion )
    {
        return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" );
    }
View Full Code Here

Examples of org.sonatype.aether.graph.Exclusion

        return result;
    }

    private static Exclusion toExclusion( org.apache.maven.model.Exclusion exclusion )
    {
        return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" );
    }
View Full Code Here

Examples of org.sonatype.aether.graph.Exclusion

        return result;
    }

    private Exclusion convert( org.apache.maven.model.Exclusion exclusion )
    {
        return new Exclusion( exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*" );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.