List<LayoutFileSet> (TempFileFactory temp) { final LayoutFileSet fileSet = new LayoutFileSet(); final File destFile = temp.allocateTempFile(newName); copyTask.setProject(getProject()); copyTask.setFile(new File(filePath.replace('/', File.separatorChar))); copyTask.setTofile(destFile); copyTask.perform(); fileSet.setFile(destFile); return Collections.singletonList(fileSet); }