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