Example #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;
 }
Example #2
0
 public boolean hasSource() {
   if (!sourcePaths.isEmpty()) {
     return true;
   }
   for (ReadableCopySpec spec : childSpecs) {
     if (spec.hasSource()) {
       return true;
     }
   }
   return false;
 }
Example #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;
 }
Example #4
0
 public Collection<? extends Action<? super FileCopyDetails>> getAllCopyActions() {
   return spec.getAllCopyActions();
 }
Example #5
0
 public boolean hasSource() {
   return spec.hasSource();
 }
Example #6
0
 public FileTree getSource() {
   return spec.getSource();
 }
Example #7
0
 public int getDirMode() {
   return spec.getDirMode();
 }
Example #8
0
 public int getFileMode() {
   return spec.getFileMode();
 }
Example #9
0
 public RelativePath getDestPath() {
   return root.getDestPath().append(spec.getDestPath());
 }