private void addLinks(RootFilesProperties rootProperties, FileSetDescriptor rootFilesDescriptor) { if (rootProperties.getLinks() != null) { rootFilesDescriptor.setLinks(rootProperties.getLinks()); } }
private void addPermissions( RootFilesProperties rootProperties, FileSetDescriptor rootFilesDescriptor) { for (RootFilesProperties.Permission permission : rootProperties.getPermissions()) { rootFilesDescriptor.addPermissions(permission.toP2Format()); } }
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()])); }