Пример #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()]));
 }