Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 5.3.2.

Duplications

File Line
com/erigir/maven/plugin/S3UploadMojo.java 365
com/erigir/maven/plugin/S3UploadMojo.java 384
                                    getLog().debug("Remote file is newer, skipping");
                                    sameCount++;
                                    sameBytes += localFile.length();
                                    if (!localFile.delete()) {
                                        getLog().warn("Error removing file " + localFile.getName() + " from upload");
                                    }
                                    while (localFile.getParentFile().list().length == 0) {
                                        getLog().info("Parent dir empty, removing it too " + localFile.getParentFile().getName());
                                        localFile = localFile.getParentFile();
                                        localFile.delete();
                                    }
                                } else {
                                    getLog().debug("Retained " + localFile.getName() + " for copy");
                                }
                                break;