File (File sourceFile, final String suffix) { String path = FileUtil.getRelativePath(baseDir, sourceFile); assertNotNull(path); if (!path.contains(File.separator)) { path = "src" + File.separator + path; } return new File(workDir, StringUtil.trimEnd(path, suffix)); }