pax_global_header 0000666 0000000 0000000 00000000064 14452275050 0014516 g ustar 00root root 0000000 0000000 52 comment=2b39160e3154d0fd9cd3cbb492ec1f144b740050
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/ 0000775 0000000 0000000 00000000000 14452275050 0023151 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/ 0000775 0000000 0000000 00000000000 14452275050 0024511 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14452275050 0026546 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/workflows/codeql-analysis.yml 0000664 0000000 0000000 00000004044 14452275050 0032363 0 ustar 00root root 0000000 0000000 # For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "main", "dev", "wip" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "dev", "wip" ]
schedule:
- cron: '39 16 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: true
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- run: |
echo "Build project with Maven"
mvn clean install -Pstrict -Puse-snapshots
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.gitignore 0000664 0000000 0000000 00000000272 14452275050 0025142 0 ustar 00root root 0000000 0000000 target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
.project
.classpath
.settings/
/.factorypath
*~
.DS_Store
/target-eclipse/
/coding-style
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/LICENSE 0000664 0000000 0000000 00000002055 14452275050 0024160 0 ustar 00root root 0000000 0000000 MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/NOTICE 0000664 0000000 0000000 00000000170 14452275050 0024053 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin
Copyright (c) 2014 Aneesh Joseph
Copyright 2023 Christian Kohlschütter
SPDX-Identifier: MIT
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/README.md 0000664 0000000 0000000 00000001517 14452275050 0024434 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin
===================
The copy-rename-maven-plugin helps in copying files or renaming files or directories during the Maven build lifecycle.
This is an improved fork of the [coderplus copy-rename-maven-plugin](https://github.com/coderplus/copy-rename-maven-plugin), which appears being orphaned.
### How do I use it? ###
Head over to the [Project Website](http://kohlschutter.github.io/copy-rename-maven-plugin/) for usage instructions
### How can I help the project? ###
Thanks for asking...
* If you use this plugin
* Test this out. [File an issue](https://github.com/kohlschutter/copy-rename-maven-plugin/issues) if it doesn't work for you. File an issue if you think it should do something more, or something different.
* If you would like to contribute
* Do let me know and you can always fork the project.
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/pom.xml 0000664 0000000 0000000 00000020142 14452275050 0024465 0 ustar 00root root 0000000 0000000
4.0.0
com.kohlschutter
kohlschutter-parent
1.5.4
../kohlschutter-parent/pom.xml
com.kohlschutter.mavenplugins
copy-rename-maven-plugin
2.0.0
maven-plugin
Copy Rename Maven Plugin
http://kohlschutter.github.io/copy-rename-maven-plugin
This plugin helps in copying files or renaming files or
directories during the Maven build lifecycle.
2014
MIT License
http://www.opensource.org/licenses/mit-license.php
repo
Aneesh Joseph
Developer
3.8.8
3.9.0
8
${maven.version}
scm:git:git@github.com:kohlschutter/copy-rename-maven-plugin.git
scm:git:git@github.com:kohlschutter/copy-rename-maven-plugin.git
scm:git:git@github.com:kohlschutter/copy-rename-maven-plugin.git
ossrh
https://oss.sonatype.org/content/repositories/snapshots
github.com/kohlschutter/copy-rename-maven-plugin
gitsite:git@github.com/kohlschutter/copy-rename-maven-plugin.git
https://github.com/kohlschutter/copy-rename-maven-plugin/issues
org.apache.maven
maven-core
${maven.version}
provided
org.apache.maven
maven-model-builder
${maven.version}
provided
org.apache.maven
maven-resolver-provider
${maven.version}
provided
org.apache.maven
maven-repository-metadata
${maven.version}
provided
org.apache.maven
maven-plugin-api
${maven.version}
provided
org.apache.maven
maven-model
${maven.version}
provided
org.apache.maven
maven-builder-support
${maven.version}
provided
org.apache.maven
maven-settings
${maven.version}
provided
org.apache.maven
maven-settings-builder
${maven.version}
provided
org.apache.maven
maven
${maven.version}
pom
provided
org.apache.maven
maven-artifact
${maven.version}
provided
org.apache.maven.plugin-tools
maven-plugin-annotations
${maven.plugin.plugin.version}
provided
org.codehaus.plexus
plexus-build-api
1.2.0
org.apache.maven.plugins
maven-plugin-plugin
${maven.plugin.plugin.version}
org.apache.maven.plugins
maven-plugin-plugin
true
default-descriptor
descriptor
org.apache.maven.plugins
maven-enforcer-plugin
enforce-maven
enforce
${maven.version}
com.coderplus.maven.plugins
copy-rename-maven-plugin
copy-readme
none
org.apache.maven.plugins
maven-plugin-report-plugin
${maven.plugin.plugin.version}
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/ 0000775 0000000 0000000 00000000000 14452275050 0023740 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/ 0000775 0000000 0000000 00000000000 14452275050 0024664 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/ 0000775 0000000 0000000 00000000000 14452275050 0025605 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/ 0000775 0000000 0000000 00000000000 14452275050 0026363 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/ 0000775 0000000 0000000 00000000000 14452275050 0031102 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/0000775 0000000 0000000 00000000000 14452275050 0033612 5 ustar 00root root 0000000 0000000 copyrename/ 0000775 0000000 0000000 00000000000 14452275050 0035675 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins CopyMojo.java 0000664 0000000 0000000 00000012640 14452275050 0040302 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/copyrename /*
* copy-rename-maven-plugin
*
* Copyright (c) 2014 Aneesh Joseph
* Copyright 2023 Christian Kohlschütter
*
* SPDX-Identifier: MIT
*/
package com.kohlschutter.mavenplugins.copyrename;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.FileUtils;
import org.sonatype.plexus.build.incremental.BuildContext;
/**
* Copy files during build.
*
* @author Aneesh Joseph
* @since 1.0
*/
@Mojo(name = "copy", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
public class CopyMojo extends AbstractMojo {
/**
* Skip execution.
*
* @since 2.0.0
*/
@Parameter(property = "copy.skip", defaultValue = "false")
boolean skip;
/**
* The file which has to be copied.
*
* @since 1.0
*/
@Parameter(required = false)
private File sourceFile;
/**
* The target file to which the file should be copied(this shouldn't be a directory but a file
* which does or does not exist).
*
* @since 1.0
*/
@Parameter(required = false)
private File destinationFile;
/**
* Collection of FileSets to work on (FileSet contains sourceFile and destinationFile). See
* Usage for details.
*
* @since 1.0
*/
@Parameter(required = false)
private List fileSets;
/**
* Overwrite existing files.
*
* @since 1.0
*/
@Parameter(property = "copy.overWrite", defaultValue = "true")
boolean overWrite;
/**
* Don't throw an error when overWrite is false and target file already exists.
*
* @since 2.0.0
*/
@Parameter(property = "copy.ignoreExisting", defaultValue = "false")
boolean ignoreExisting;
/**
* Ignore copying this file if it does not exist.
*
* @since 2.0.0
*/
@Parameter(property = "copy.ignoreMissing", defaultValue = "false")
boolean ignoreMissing;
/**
* Ignore File Not Found errors during incremental build.
*
* @since 1.0
*/
@Parameter(property = "copy.ignoreFileNotFoundOnIncremental", defaultValue = "true")
boolean ignoreFileNotFoundOnIncremental;
/**
* Reference to the maven project.
*
* @since 1.0
*/
@Parameter(defaultValue = "${project}", readonly = true)
private MavenProject project;
@Component
private BuildContext buildContext;
/**
* Creates a new instance of the "copy" mojo.
*/
public CopyMojo() {
super();
}
@Override
public void execute() throws MojoExecutionException {
new CopyMojoExecutionContext(this).execute();
}
private final class CopyMojoExecutionContext extends MojoExecutionContext {
protected CopyMojoExecutionContext(CopyMojo mojo) {
super(mojo);
}
@Override
public void execute() throws MojoExecutionException {
if (skip) {
logDebug("Skipping the copy-rename-maven-plugin");
return;
}
logDebug("Executing the copy-rename-maven-plugin");
if (fileSets != null && !fileSets.isEmpty()) {
for (FileSet fileSet : fileSets) {
File srcFile = fileSet.getSourceFile();
File destFile = fileSet.getDestinationFile();
if (srcFile != null) {
copy(srcFile, destFile);
}
}
} else if (sourceFile != null) {
copy(sourceFile, destinationFile);
} else {
logInfo("No Files to process");
}
}
@SuppressWarnings("PMD.CognitiveComplexity")
private void copy(File srcFile, File destFile) throws MojoExecutionException {
if (!srcFile.exists()) {
if (ignoreMissing) {
logInfo("Skipping copy of ", srcFile.getAbsolutePath(), " (missing)");
} else if (ignoreFileNotFoundOnIncremental && buildContext.isIncremental()) {
logWarn("sourceFile ", srcFile.getAbsolutePath(), " not found during incremental build");
} else {
logError("sourceFile ", srcFile.getAbsolutePath(), " does not exist");
}
} else if (srcFile.isDirectory()) {
logError("sourceFile ", srcFile.getAbsolutePath(), " is not a file");
} else if (destFile == null) {
logError("destinationFile not specified");
} else if (destFile.exists() && destFile.isFile() && !overWrite) {
if (ignoreExisting) {
logInfo("Skipping ", destFile.getAbsolutePath(), " (already exists)");
} else {
logError(destFile.getAbsolutePath(), " already exists and overWrite not set");
}
} else {
try {
if (buildContext.isIncremental() && destFile.exists() && !buildContext.hasDelta(srcFile)
&& FileUtils.contentEquals(srcFile, destFile)) {
logInfo("No changes detected in ", srcFile.getAbsolutePath());
return;
}
FileUtils.copyFile(srcFile, destFile);
logInfo("Copied ", srcFile.getAbsolutePath(), " to " + destFile.getAbsolutePath());
buildContext.refresh(destFile);
} catch (IOException e) {
throw new MojoExecutionException("could not copy " + srcFile.getAbsolutePath() + " to "
+ destFile.getAbsolutePath(), e);
}
}
}
}
}
FileSet.java 0000664 0000000 0000000 00000002125 14452275050 0040073 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/copyrename /*
* copy-rename-maven-plugin
*
* Copyright (c) 2014 Aneesh Joseph
* Copyright 2023 Christian Kohlschütter
*
* SPDX-Identifier: MIT
*/
package com.kohlschutter.mavenplugins.copyrename;
import java.io.File;
/**
* Specifies source and destination file.
*/
public class FileSet {
private File sourceFile;
private File destinationFile;
/**
* Creates a new {@link FileSet} instance.
*/
public FileSet() {
super();
}
/**
* Gets the source file.
*
* @return The source file.
*/
public File getSourceFile() {
return sourceFile;
}
/**
* Sets the source file.
*
* @param sourceFile The source file.
*/
public void setSourceFile(File sourceFile) {
this.sourceFile = sourceFile;
}
/**
* Gets the destination file.
*
* @return The destination file.
*/
public File getDestinationFile() {
return destinationFile;
}
/**
* Sets the destination file.
*
* @param destinationFile The destination file.
*/
public void setDestinationFile(File destinationFile) {
this.destinationFile = destinationFile;
}
}
MojoExecutionContext.java 0000664 0000000 0000000 00000003423 14452275050 0042677 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/copyrename /*
* copy-rename-maven-plugin
*
* Copyright (c) 2014 Aneesh Joseph
* Copyright 2023 Christian Kohlschütter
*
* SPDX-Identifier: MIT
*/
package com.kohlschutter.mavenplugins.copyrename;
import java.util.function.Supplier;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.logging.Log;
/**
* Helper class to simplify logging and encapsulating the execution context.
*
* @author Christian Kohlschütter
*/
abstract class MojoExecutionContext {
private final Log log; // NOPMD.ProperLogger
protected MojoExecutionContext(AbstractMojo mojo) {
this.log = mojo.getLog();
}
public abstract void execute() throws MojoExecutionException;
protected void logDebug(Object... msg) {
if (log.isDebugEnabled()) {
log.debug(concatenate(msg));
}
}
protected void logInfo(Object... msg) {
if (log.isInfoEnabled()) {
log.info(concatenate(msg));
}
}
protected void logWarn(Object... msg) {
if (log.isWarnEnabled()) {
log.warn(concatenate(msg));
}
}
protected void logError(Object... msg) {
if (log.isErrorEnabled()) {
log.error(concatenate(msg));
}
}
private static String concatenate(Object... parts) {
switch (parts.length) {
case 0:
return "";
case 1:
Object p1 = parts[0];
if (p1 instanceof Supplier>) {
p1 = ((Supplier>) p1).get();
}
return String.valueOf(p1);
default:
StringBuilder sb = new StringBuilder();
for (Object p : parts) {
if (p instanceof Supplier>) {
p = ((Supplier>) p).get(); // NOPMD.AvoidReassigningLoopVariables
}
sb.append(p);
}
return sb.toString();
}
}
}
RenameMojo.java 0000664 0000000 0000000 00000014141 14452275050 0040575 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/copyrename /*
* copy-rename-maven-plugin
*
* Copyright (c) 2014 Aneesh Joseph
* Copyright 2023 Christian Kohlschütter
*
* SPDX-Identifier: MIT
*/
package com.kohlschutter.mavenplugins.copyrename;
import java.io.File;
import java.io.IOException;
import java.util.List;
/*
* The MIT License
*
* Copyright (c) 2004
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.FileUtils;
import org.sonatype.plexus.build.incremental.BuildContext;
// CPD-OFF
/**
* Rename files or directories during build.
*
* @author Aneesh Joseph
* @since 1.0
*/
@Mojo(name = "rename", defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
public class RenameMojo extends AbstractMojo {
/**
* Skip execution.
*
* @since 2.0.0
*/
@Parameter(property = "copy.skip", defaultValue = "false")
boolean skip;
/**
* The file/directory which has to be renamed.
*
* @since 1.0
*/
@Parameter(required = false)
private File sourceFile;
/**
* The target file/directory name.
*
* @since 1.0
*/
@Parameter(required = false)
private File destinationFile;
/**
* Collection of FileSets to work on (FileSet contains sourceFile and destinationFile). See
* Usage for details.
*
* @since 1.0
*/
@Parameter(required = false)
private List fileSets;
/**
* Overwrite existing files.
*
* @since 1.0
*/
@Parameter(property = "copy.overWrite", defaultValue = "true")
boolean overWrite;
/**
* Don't throw an error when overWrite is false and target file already exists.
*
* @since 2.0.0
*/
@Parameter(property = "copy.ignoreExisting", defaultValue = "false")
boolean ignoreExisting;
/**
* Ignore renaming this file if it does not exist.
*
* @since 2.0.0
*/
@Parameter(property = "copy.ignoreMissing", defaultValue = "false")
boolean ignoreMissing;
/**
* Ignore errors if the source file/directory was not found during incremental build.
*
* @since 1.0
*/
@Parameter(property = "copy.ignoreFileNotFoundOnIncremental", defaultValue = "true")
boolean ignoreFileNotFoundOnIncremental;
/**
* Reference to the Maven project.
*
* @since 1.0
*/
@Parameter(defaultValue = "${project}", readonly = true)
private MavenProject project;
@Component
private BuildContext buildContext;
/**
* Creates a new instance of the "rename" mojo.
*/
public RenameMojo() {
super();
}
@Override
public void execute() throws MojoExecutionException {
new RenameMojoExecutionContext(this).execute();
}
private final class RenameMojoExecutionContext extends MojoExecutionContext {
protected RenameMojoExecutionContext(RenameMojo mojo) {
super(mojo);
}
@Override
public void execute() throws MojoExecutionException {
if (skip) {
logDebug("Skipping the copy-rename-maven-plugin");
return;
}
logDebug("Executing the copy-rename-maven-plugin");
if (fileSets != null && !fileSets.isEmpty()) {
for (FileSet fileSet : fileSets) {
File srcFile = fileSet.getSourceFile();
File destFile = fileSet.getDestinationFile();
if (srcFile != null) {
rename(srcFile, destFile);
}
}
} else if (sourceFile != null) {
rename(sourceFile, destinationFile);
} else {
logInfo("No Files to process");
}
}
private void rename(File srcFile, File destFile) throws MojoExecutionException {
if (!srcFile.exists()) {
if (ignoreMissing) {
logInfo("Skipping rename of ", srcFile.getAbsolutePath(), " (missing)");
} else if (ignoreFileNotFoundOnIncremental && buildContext.isIncremental()) {
logWarn("sourceFile ", srcFile.getAbsolutePath(), " not found during incremental build");
} else {
logError("sourceFile ", srcFile.getAbsolutePath(), " does not exist");
}
} else if (destFile == null) {
logError("destinationFile not specified");
} else if (destFile.exists() && (destFile.isFile() == srcFile.isFile()) && !overWrite) {
if (ignoreExisting) {
logInfo("Skipping ", destFile.getAbsolutePath(), " (already exists)");
} else {
logError(destFile.getAbsolutePath(), " already exists and overWrite not set");
}
} else {
try {
FileUtils.rename(srcFile, destFile);
logInfo("Renamed ", srcFile.getAbsolutePath(), " to ", destFile.getAbsolutePath());
buildContext.refresh(destFile);
} catch (IOException e) {
throw new MojoExecutionException("could not rename " + srcFile.getAbsolutePath() + " to "
+ destFile.getAbsolutePath(), e);
}
}
}
}
}
copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/ 0000775 0000000 0000000 00000000000 14452275050 0026676 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/ 0000775 0000000 0000000 00000000000 14452275050 0030036 5 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/m2e/ 0000775 0000000 0000000 00000000000 14452275050 0030521 5 ustar 00root root 0000000 0000000 lifecycle-mapping-metadata.xml 0000664 0000000 0000000 00000000707 14452275050 0036336 0 ustar 00root root 0000000 0000000 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/m2e
copy
rename
true
true