org.apache.tools.ant.types.FilterChain Java Examples
The following examples show how to use
org.apache.tools.ant.types.FilterChain.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IvyExtractFromSources.java From ant-ivy with Apache License 2.0 | 6 votes |
private void configureConcat() { concat.setProject(getProject()); concat.setTaskName(getTaskName()); FilterChain filterChain = new FilterChain(); LineContainsRegExp lcre = new LineContainsRegExp(); RegularExpression regexp = new RegularExpression(); regexp.setPattern("^import .+;"); lcre.addConfiguredRegexp(regexp); filterChain.add(lcre); TokenFilter tf = new TokenFilter(); TokenFilter.ReplaceRegex rre = new TokenFilter.ReplaceRegex(); rre.setPattern("import (.+);.*"); rre.setReplace("\\1"); tf.add(rre); filterChain.add(tf); concat.addFilterChain(filterChain); }
Example #2
Source File: ExtractLayer.java From netbeans with Apache License 2.0 | 4 votes |
public void addConfiguredBundleFilter(FilterChain b) { bundleFilter = b; }
Example #3
Source File: Groovy.java From groovy with Apache License 2.0 | 2 votes |
/** * Add the FilterChain element. * @param filter the filter to add */ public final void addFilterChain(FilterChain filter) { filterChains.add(filter); }