CPD Results
The following document contains the results of PMD's CPD 7.0.0.
Duplications
File | Line |
---|---|
org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java | 49 |
org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java | 49 |
CommonsCliMavenOptions options, Collection<Map<String, String>> properties) { try { // now that we have properties, interpolate all arguments BasicInterpolator interpolator = createInterpolator(properties); CommandLine.Builder commandLineBuilder = new CommandLine.Builder(); commandLineBuilder.setDeprecatedHandler(o -> {}); for (Option option : options.commandLine.getOptions()) { if (!CLIManager.USER_PROPERTY.equals(option.getOpt())) { List<String> values = option.getValuesList(); for (ListIterator<String> it = values.listIterator(); it.hasNext(); ) { it.set(interpolator.interpolate(it.next())); } } commandLineBuilder.addOption(option); } for (String arg : options.commandLine.getArgList()) { commandLineBuilder.addArg(interpolator.interpolate(arg)); } return new CommonsCliMavenOptions( |