CompilationDetailsImpl (org.gradle.tooling.model.cpp.CompilationDetails details) { CompilationDetailsImpl compilationDetails = new CompilationDetailsImpl(); compilationDetails.setCompileTask(convert(details.getCompileTask())); compilationDetails.setAdditionalArgs(new ArrayList<>(details.getAdditionalArgs())); compilationDetails.setCompilerExecutable(details.getCompilerExecutable()); compilationDetails.setCompileWorkingDir(details.getCompileWorkingDir()); compilationDetails.setFrameworkSearchPaths(new ArrayList<>(details.getFrameworkSearchPaths())); compilationDetails.setHeaderDirs(new LinkedHashSet<>(details.getHeaderDirs())); compilationDetails.setMacroDefines(convert(details.getMacroDefines())); compilationDetails.setMacroUndefines(new LinkedHashSet<>(details.getMacroUndefines())); compilationDetails.setSources(convertSources(details.getSources())); compilationDetails.setSystemHeaderSearchPaths(new ArrayList<>(details.getSystemHeaderSearchPaths())); compilationDetails.setUserHeaderSearchPaths(new ArrayList<>(details.getUserHeaderSearchPaths())); return compilationDetails; }