public List<ReadableCopySpec> getAllSpecs() { List<ReadableCopySpec> result = new ArrayList<ReadableCopySpec>(); result.add(this); for (ReadableCopySpec childSpec : childSpecs) { result.addAll(childSpec.getAllSpecs()); } return result; }
public boolean hasSource() { if (!sourcePaths.isEmpty()) { return true; } for (ReadableCopySpec spec : childSpecs) { if (spec.hasSource()) { return true; } } return false; }
public Collection<? extends ReadableCopySpec> getAllSpecs() { List<WrapperCopySpec> specs = new ArrayList<WrapperCopySpec>(); for (ReadableCopySpec child : spec.getAllSpecs()) { specs.add(new WrapperCopySpec(root, child)); } return specs; }
public Collection<? extends Action<? super FileCopyDetails>> getAllCopyActions() { return spec.getAllCopyActions(); }
public boolean hasSource() { return spec.hasSource(); }
public FileTree getSource() { return spec.getSource(); }
public int getDirMode() { return spec.getDirMode(); }
public int getFileMode() { return spec.getFileMode(); }
public RelativePath getDestPath() { return root.getDestPath().append(spec.getDestPath()); }