protected void mergeFileSet_Directory( FileSet target, FileSet source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDirectory(); if ( src != null ) { if ( sourceDominant || target.getDirectory() == null ) { target.setDirectory( src ); target.setLocation( "directory", source.getLocation( "directory" ) ); } } }
fileSet.setDirectory( interpolatedTrimmed( parser.nextText(), "directory" ) );
fileSet.setDirectory( interpolatedTrimmed( parser.nextText(), "directory" ) );
fileSet.setDirectory( getTrimmedValue( value ) );
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); }
public static CompilerResources createCompilerResources(File sourceDirectory, String[] includes, String[] excludes, File targetDirectory, String relativeOutputDirectory) { final CompilerResources resource = new CompilerResources(); resource.source = new FileSet(); resource.source.setDirectory(sourceDirectory.toString()); if (includes != null) { resource.source.setIncludes(Arrays.asList(includes)); } if (excludes != null) { resource.source.setExcludes(Arrays.asList(excludes)); } resource.relativeOutputDirectory = relativeOutputDirectory; resource.destination = targetDirectory; return resource; }
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); }
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 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; }
fileSet.setDirectory( getTrimmedValue( xmlStreamReader.getElementText()) );
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); }
protected void mergeFileSet_Directory( FileSet target, FileSet source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDirectory(); if ( src != null ) { if ( sourceDominant || target.getDirectory() == null ) { target.setDirectory( src ); target.setLocation( "directory", source.getLocation( "directory" ) ); } } }
fileSet.setDirectory( getTrimmedValue( childElement.getText() ) );
fileSet.setDirectory( getTrimmedValue( parser.nextText()) );
/** * Updates test or compile sourceRoot and resources, * depending on the isAddToTestSources() flag. * * @throws MojoExecutionException */ protected void updateMavenPaths() { // Mark XJC_generated java files for compilation. if (getProject() != null) // null when run for testing. if (isAddToTestSources()) getProject().addTestCompileSourceRoot(getGenerateDirectory().getPath()); else getProject().addCompileSourceRoot(getGenerateDirectory().getPath()); // Mark XJC_gen prop files as resources for inclusion to final jar. Resource jaxbRes = new Resource(); jaxbRes.setDirectory(getGenerateDirectory().getPath()); jaxbRes.addInclude("**/jaxb.properties"); jaxbRes.addInclude("**/bgm.ser"); if (getProject() != null) // null when run for testing. if (isAddToTestSources()) getProject().addTestResource(jaxbRes); else getProject().addResource(jaxbRes); }
fileSet.setDirectory( getTrimmedValue( parser.nextText() ) );
fileSet.setDirectory( getTrimmedValue( parser.nextText() ) );