/** * Return a ArchiveFileSet that has the same properties * as this one. * @return the cloned archiveFileSet * @since Ant 1.6 */ @Override public Object clone() { if (isReference()) { return getCheckedRef(ArchiveFileSet.class, getDataTypeName(), getProject()).clone(); } return super.clone(); }
/** * Add the files matched by the nested source files to the Vector * as SourceFile instances. * * @since 1.7 */ private void addSourceFiles(final List<SourceFile> sf) { for (ResourceCollection rc : nestedSourceFiles) { if (!rc.isFilesystemOnly()) { throw new BuildException( "only file system based resources are supported by javadoc"); } if (rc instanceof FileSet) { final FileSet fs = (FileSet) rc; if (!fs.hasPatterns() && !fs.hasSelectors()) { final FileSet fs2 = (FileSet) fs.clone(); fs2.createInclude().setName("**/*.java"); if (includeNoSourcePackages) { fs2.createInclude().setName("**/package.html"); } rc = fs2; } } for (final Resource r : rc) { sf.add(new SourceFile(r.as(FileProvider.class).getFile())); } } }
final FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); vfss.add(fs);
log("Deleting fileset with no project specified; assuming executing project", Project.MSG_VERBOSE); fs = (FileSet) fs.clone(); fs.setProject(getProject());
/** * {@inheritDoc} * * @since 1.0.0 */ @Override public OptionExecution deepClone() { final PlantUMLDependencyOutputOptionExecution p = (PlantUMLDependencyOutputOptionExecution) super.deepClone(); p.outputFile = new File(outputFile.getAbsolutePath()); p.inputFileSet = (FileSet) inputFileSet.clone(); p.displayTypesOptions = new TreeSet < DisplayType >(displayTypesOptions); p.displayPackageNamePattern = displayPackageNamePattern; p.displayNamePattern = displayNamePattern; return p; }
private void createHierarchy(ISO9660RootDirectory root) throws HandlerException, IOException { if (baseDir != null) { FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); filesets.addElement(fs); } Iterator it = filesets.iterator(); while (it.hasNext()) { FileSet fs = (FileSet) it.next(); String prefix = ""; if (fs instanceof ISOFileSet) { ISOFileSet ifs = (ISOFileSet) fs; prefix = ifs.getPrefix(); } createHierarchy(root, fs, prefix); } }
private void createHierarchy(ISO9660RootDirectory root) throws HandlerException, IOException { if (baseDir != null) { FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); filesets.addElement(fs); } Iterator it = filesets.iterator(); while (it.hasNext()) { FileSet fs = (FileSet) it.next(); String prefix = ""; if (fs instanceof ISOFileSet) { ISOFileSet ifs = (ISOFileSet) fs; prefix = ifs.getPrefix(); } createHierarchy(root, fs, prefix); } }
private void createHierarchy(ISO9660RootDirectory root) throws HandlerException, IOException { if (baseDir != null) { FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); filesets.addElement(fs); } Iterator it = filesets.iterator(); while (it.hasNext()) { FileSet fs = (FileSet) it.next(); String prefix = ""; if (fs instanceof ISOFileSet) { ISOFileSet ifs = (ISOFileSet) fs; prefix = ifs.getPrefix(); } createHierarchy(root, fs, prefix); } }
private void createHierarchy(ISO9660RootDirectory root) throws HandlerException, IOException { if (baseDir != null) { FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); filesets.addElement(fs); } Iterator it = filesets.iterator(); while (it.hasNext()) { FileSet fs = (FileSet) it.next(); String prefix = ""; if (fs instanceof ISOFileSet) { ISOFileSet ifs = (ISOFileSet) fs; prefix = ifs.getPrefix(); } createHierarchy(root, fs, prefix); } }
/** * Returns the all implicit and explicit FileSets. * * @return The FileSets to process. */ protected List<FileSet> getImplicitAndExplicitFileSet() { Vector<FileSet> vfss = new Vector<FileSet>(); FileSet fs = (FileSet) getImplicitFileSet().clone(); if (srcdir != null) { fs.setDir(srcdir); } if (fs.getDir() != null) { vfss.addElement(fs); } for (FileSet rc : resources) { log("Adding FileSet to the list of FileSets to be processed " + rc.getDescription()); vfss.addElement(rc); } return vfss; }
/** * Returns the all implicit and explicit FileSets. * * @return The FileSets to process. */ protected List<FileSet> getImplicitAndExplicitFileSet() { Vector<FileSet> vfss = new Vector<FileSet>(); FileSet fs = (FileSet) getImplicitFileSet().clone(); if (srcdir != null) { fs.setDir(srcdir); } if (fs.getDir() != null) { vfss.addElement(fs); } for (FileSet rc : resources) { log("Adding FileSet to the list of FileSets to be processed " + rc.getDescription()); vfss.addElement(rc); } return vfss; }