예제 #1
0
 private void addLinks(RootFilesProperties rootProperties, FileSetDescriptor rootFilesDescriptor) {
   if (rootProperties.getLinks() != null) {
     rootFilesDescriptor.setLinks(rootProperties.getLinks());
   }
 }
예제 #2
0
 private void addPermissions(
     RootFilesProperties rootProperties, FileSetDescriptor rootFilesDescriptor) {
   for (RootFilesProperties.Permission permission : rootProperties.getPermissions()) {
     rootFilesDescriptor.addPermissions(permission.toP2Format());
   }
 }
예제 #3
0
 private void addFiles(RootFilesProperties rootProperties, FileSetDescriptor rootFilesDescriptor) {
   FileToPathMap sourceToDestinationMap = rootProperties.getFileMap();
   if (sourceToDestinationMap == null) return;
   Set<File> sourceFiles = sourceToDestinationMap.keySet();
   rootFilesDescriptor.addFiles(sourceFiles.toArray(new File[sourceFiles.size()]));
 }