Java Code Examples for org.apache.tools.ant.types.PatternSet#setIncludes()
The following examples show how to use
org.apache.tools.ant.types.PatternSet#setIncludes() .
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: BundleLocator.java From knopflerfish.org with BSD 3-Clause "New" or "Revised" License | 6 votes |
private void createPatternSet() { final PatternSet patternSet = new PatternSet(); log("Creating a patternset for the bundles with id='" +patternSetId +"'.", Project.MSG_DEBUG); for (final Object element : bas.allBundleArchives) { final BundleArchives.BundleArchive ba = (BundleArchives.BundleArchive) element; patternSet.setIncludes(ba.relPath); log("Adding includes '" +ba.relPath +"'.", Project.MSG_DEBUG); } getProject().addReference(patternSetId, patternSet); }
Example 2
Source File: ClassSection.java From yGuard with MIT License | 5 votes |
public void addEntries( Collection entries, ZipFileSet zf ) throws IOException { if ( classesSet && patternSets.size() < 1 ) { PatternSet ps = new PatternSet(); ps.setProject( zf.getProject() ); ps.setIncludes( "**.*" ); patternSets.add( ps ); } super.addEntries( entries, zf ); }
Example 3
Source File: JarExpander.java From PoseidonX with Apache License 2.0 | 5 votes |
private PatternSet createPatternSet(Project prj) { PatternSet patternSet = new PatternSet(); patternSet.setProject(prj); patternSet.setIncludes("**/*"); return patternSet; }
Example 4
Source File: JarBundler.java From JarBundler with Apache License 2.0 | 5 votes |
/** * Setter for the "jars" attribute (required if no "jarfileset" is present) * * @deprecated Use <jarfileset> and/or <jarfilelist> nested tasks instead. * * @param s A list of jar files or patternsets (space or comma seperated) */ public void setJars(String s) { PatternSet patset = new PatternSet(); patset.setIncludes(s); String[] jarNames = patset.getIncludePatterns(getProject()); for (int i = 0; i < jarNames.length; i++) mJarAttrs.add(getProject().resolveFile(jarNames[i])); }
Example 5
Source File: JarBundler.java From JarBundler with Apache License 2.0 | 5 votes |
/** * Setter for the "execs" attribute * * @deprecated Use <execfileset/> or <execfilelist/> nested tasks instead. * * @param s A list of files or patternsets (space or comma seperated) */ public void setExecs(String s) { PatternSet patset = new PatternSet(); patset.setIncludes(s); String[] execNames = patset.getIncludePatterns(getProject()); for (int i = 0; i < execNames.length; i++) { File f = new File(execNames[i]); mExecAttrs.add(f); } }
Example 6
Source File: JarBundler.java From JarBundler with Apache License 2.0 | 5 votes |
/** * Setter for the "extraclasspath" attribute (optional) * * @param s A list of files or patternsets (space or comma seperated) */ public void setExtraclasspath(String s) { if (s == null || s.trim().equals("")) return; PatternSet patset = new PatternSet(); patset.setIncludes(s); String[] cpNames = patset.getIncludePatterns(getProject()); for (int i = 0; i < cpNames.length; i++) { File f = new File(cpNames[i]); mExtraClassPathAttrs.add(f); } }