protected List<FileSet> as3ClassesFileSet( File... files ) { if ( files == null ) { return null; } List<FileSet> sets = new ArrayList<FileSet>(); for ( File file : files ) { FileSet fs = new FileSet(); fs.setDirectory( PathUtil.path( file ) ); fs.addInclude( "**/*.as" ); fs.addInclude( "**/*.mxml" ); sets.add( fs ); } return sets; }
private Iterable<File> findTemplateFiles() throws MojoExecutionException { if (null == templates) { File defaultDirectory = resolveRelativePath(new File(MAIN_TEMPLATES)); if (defaultDirectory.exists() && defaultDirectory.isDirectory()) { FileSet fileSet = new FileSet(); fileSet.setDirectory(MAIN_TEMPLATES); fileSet.addInclude(XML_INCLUDES); templates = new FileSet[] { fileSet }; } } return doScan(templates); }
private Iterable<File> findFacesConfigFiles() throws MojoExecutionException { if (null == facesConfigs) { File defaultDirectory = resolveRelativePath(new File(MAIN_CONFIG)); if (defaultDirectory.exists() && defaultDirectory.isDirectory()) { FileSet fileSet = new FileSet(); fileSet.setDirectory(MAIN_CONFIG); fileSet.addInclude(XML_INCLUDES); facesConfigs = new FileSet[] { fileSet }; } } return doScan(facesConfigs); }
private List<FileSet> fileSets() { List<FileSet> templateSets = templateSets(); if (null == templateSets) { templateSets = new LinkedList<FileSet>(); final FileSet templateSet = new FileSet(); templateSet.setDirectory(stripPrefix() + "java"); templateSet.addInclude("**/*" + stripSuffix()); templateSets.add(templateSet); } return templateSets; }
@Override protected List<File> getHTMLFiles() throws IOException { FileSet htmlFiles = new FileSet(); htmlFiles.setDirectory(outputDirectory.getAbsolutePath()); htmlFiles.addInclude(getFileNameToReplace()); return toFileList(htmlFiles); }
private List<FileSet> fileSets() { List<FileSet> templateSets = templateSets(); if (null == templateSets) { templateSets = new LinkedList<>(); final FileSet templateSet = new FileSet(); templateSet.setDirectory(stripPrefix() + "java"); templateSet.addInclude("**/*" + stripSuffix()); templateSets.add(templateSet); } return templateSets; }
private List<File> getProjects() throws IOException { FileSet restriction = new FileSet(); restriction.setDirectory(workspace.getAbsolutePath()); restriction.addInclude("**/.project"); restriction.addExclude("**/.bsProject/.project"); restriction.addExclude("**/.com.tibco.bw.rad/.project"); List<File> projects = Utils.toFileList(restriction); return projects; }
protected List<File> getHTMLFiles() throws IOException { FileSet htmlFiles = new FileSet(); htmlFiles.setDirectory(outputDirectory.getAbsolutePath()); htmlFiles.addInclude("**/*.html"); htmlFiles.addExclude("apidocs/**/*"); htmlFiles.addExclude("xref/**/*"); return toFileList(htmlFiles); }
defaultCheckSet.addInclude("pom.xml"); defaultCheckSet.addInclude(workflowDescriptor); checkSets.add(defaultCheckSet); fs.setDirectory(basedir.getAbsolutePath()); for (String res : checkResources) { fs.addInclude(res);