Java 类org.apache.maven.model.PatternSet 实例源码

项目:apache-maven-shade-plugin    文件:MavenJDOMWriter.java   
/**
 * Method updatePatternSet
 *
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updatePatternSet( PatternSet value, String xmlTag, Counter counter, Element element )
{
    boolean shouldExist = value != null;
    Element root = updateElement( counter, element, xmlTag, shouldExist );
    if ( shouldExist )
    {
        Counter innerCount = new Counter( counter.getDepth() + 1 );
        findAndReplaceSimpleLists( innerCount, root, value.getIncludes(), "includes", "include" );
        findAndReplaceSimpleLists( innerCount, root, value.getExcludes(), "excludes", "exclude" );
    }
}
项目:maven-shade-plugin    文件:MavenJDOMWriter.java   
/**
 * Method updatePatternSet
 *
 * @param value
 * @param element
 * @param counter
 * @param xmlTag
 */
protected void updatePatternSet( PatternSet value, String xmlTag, Counter counter, Element element )
{
    boolean shouldExist = value != null;
    Element root = updateElement( counter, element, xmlTag, shouldExist );
    if ( shouldExist )
    {
        Counter innerCount = new Counter( counter.getDepth() + 1 );
        findAndReplaceSimpleLists( innerCount, root, value.getIncludes(), "includes", "include" );
        findAndReplaceSimpleLists( innerCount, root, value.getExcludes(), "excludes", "exclude" );
    }
}
项目:oceano    文件:ModelMerger.java   
protected void mergePatternSet_Includes( PatternSet target, PatternSet source, boolean sourceDominant,
                                         Map<Object, Object> context )
{
    List<String> src = source.getIncludes();
    if ( !src.isEmpty() )
    {
        List<String> tgt = target.getIncludes();
        List<String> merged = new ArrayList<String>( tgt.size() + src.size() );
        merged.addAll( tgt );
        merged.addAll( src );
        target.setIncludes( merged );
    }
}
项目:oceano    文件:ModelMerger.java   
protected void mergePatternSet_Excludes( PatternSet target, PatternSet source, boolean sourceDominant,
                                         Map<Object, Object> context )
{
    List<String> src = source.getExcludes();
    if ( !src.isEmpty() )
    {
        List<String> tgt = target.getExcludes();
        List<String> merged = new ArrayList<String>( tgt.size() + src.size() );
        merged.addAll( tgt );
        merged.addAll( src );
        target.setExcludes( merged );
    }
}
项目:nbm-maven    文件:JarsConfig.java   
public PatternSet getJarSet()
{
    return jarSet;
}
项目:nbm-maven    文件:JarsConfig.java   
public void setJarSet(PatternSet jarSet)
{
    this.jarSet = jarSet;
}
项目:oceano    文件:ModelMerger.java   
protected void mergePatternSet( PatternSet target, PatternSet source, boolean sourceDominant,
                                Map<Object, Object> context )
{
    mergePatternSet_Includes( target, source, sourceDominant, context );
    mergePatternSet_Excludes( target, source, sourceDominant, context );
}