/** * 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" ); } }
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 ); } }
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 ); } }
public PatternSet getJarSet() { return jarSet; }
public void setJarSet(PatternSet jarSet) { this.jarSet = jarSet; }
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 ); }