pax_global_header00006660000000000000000000000064144522750500014516gustar00rootroot0000000000000052 comment=2b39160e3154d0fd9cd3cbb492ec1f144b740050 copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/000077500000000000000000000000001445227505000231515ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/000077500000000000000000000000001445227505000245115ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/workflows/000077500000000000000000000000001445227505000265465ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/.github/workflows/codeql-analysis.yml000066400000000000000000000040441445227505000323630ustar00rootroot00000000000000# 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/.gitignore000066400000000000000000000002721445227505000251420ustar00rootroot00000000000000target/ 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/LICENSE000066400000000000000000000020551445227505000241600ustar00rootroot00000000000000MIT 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/NOTICE000066400000000000000000000001701445227505000240530ustar00rootroot00000000000000copy-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.md000066400000000000000000000015171445227505000244340ustar00rootroot00000000000000copy-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.xml000066400000000000000000000201421445227505000244650ustar00rootroot00000000000000 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/000077500000000000000000000000001445227505000237405ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/000077500000000000000000000000001445227505000246645ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/000077500000000000000000000000001445227505000256055ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/000077500000000000000000000000001445227505000263635ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/000077500000000000000000000000001445227505000311025ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenplugins/000077500000000000000000000000001445227505000336125ustar00rootroot00000000000000copyrename/000077500000000000000000000000001445227505000356755ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/java/com/kohlschutter/mavenpluginsCopyMojo.java000066400000000000000000000126401445227505000403020ustar00rootroot00000000000000copy-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.java000066400000000000000000000021251445227505000400730ustar00rootroot00000000000000copy-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.java000066400000000000000000000034231445227505000426770ustar00rootroot00000000000000copy-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.java000066400000000000000000000141411445227505000405750ustar00rootroot00000000000000copy-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/000077500000000000000000000000001445227505000266765ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/000077500000000000000000000000001445227505000300365ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/m2e/000077500000000000000000000000001445227505000305215ustar00rootroot00000000000000lifecycle-mapping-metadata.xml000066400000000000000000000007071445227505000363360ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/main/resources/META-INF/m2e copy rename true true copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/site/000077500000000000000000000000001445227505000247045ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/site/apt/000077500000000000000000000000001445227505000254705ustar00rootroot00000000000000copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/site/apt/index.apt000066400000000000000000000041111445227505000273020ustar00rootroot00000000000000 ------ Introduction ------ Aneesh Joseph ------ 2014-10-25 ------ ~~ 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. Copy Rename Maven Plugin ~~ Plugin introduction, description, and other relevant information. * The copy-rename-maven-plugin helps in copying files or renaming files or directories during the Maven build lifecycle. * This plugin is compatible with Eclipse m2e and should work on both full and incremental builds * Goals Overview ~~ General Information about the goals. * {{{./copy-mojo.html}copy-rename:copy}} Copy files during maven build. * {{{./rename-mojo.html}copy-rename:rename}} Rename files or directories during maven build. * Usage Instructions on how to use the Copy Rename Maven Plugin can be found on the {{{./usage.html}usage page}}. * Help/Contact In case you would like report an issue, head over to the {{{https://github.com/coderplus/copy-rename-maven-plugin}GitHub Page}}. If you would like to say hello, contact us at the {{{http://coderplus.com}CoderPlus website}}. copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/site/apt/usage.apt.vm000066400000000000000000000167101445227505000277300ustar00rootroot00000000000000 ------ Usage ------ Aneesh Joseph ------ 2014-10-25 ------ ~~ 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. Usage Brief examples on how to use the Copy Maven Plugin's goals. * Copy a single file during maven build Use this example to copy a file during maven build. ------------------- ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} copy-file generate-sources copy src/someDirectory/test.environment.properties target/someDir/environment.properties ------------------- * Copy multiple files during a maven build The same as the previous example, but this time it will copy a directory instead of a file ------------------- ... ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} copy generate-sources copy src/someDirectory/test.environment.properties target/someDir/environment.properties src/someDirectory/test.logback.xml target/someDir/logback.xml ------------------- * Rename a file during maven build The same as the first example, but this time it will do a rename instead of copy ------------------- ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} rename-file generate-sources rename src/someDirectory/test.environment.properties target/someDir/environment.properties ------------------- * Rename a directory during maven build Similar to the above example, but this time it will do a rename a directory ------------------- ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} rename-file generate-sources rename target/someDirectory/ target/someOtherDirectory/ ------------------- * Rename multiple files during maven build The same as the second example, but this time it will do a rename instead of copy ------------------- ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} rename-file generate-sources rename src/someDirectory/test.environment.properties target/someDir/environment.properties src/someDirectory/test.logback.xml target/someDir/logback.xml ------------------- * Rename multiple files/directories during maven build The same as the second example, but this time it will do a rename instead of copy ------------------- ... com.coderplus.maven.plugins copy-rename-maven-plugin ${project.version} rename-file generate-sources rename src/someDirectory/test.environment.properties target/someDir/environment.properties src/someFolder/ target/someOtherFolder/ -------------------copy-rename-maven-plugin-copy-rename-maven-plugin-2.0.0/src/site/site.xml000066400000000000000000000025071445227505000263760ustar00rootroot00000000000000 org.apache.maven.skins maven-fluido-skin 2.0.0-M6 Copy Rename Maven Plugin https://coderplus.github.io/copy-rename-maven-plugin/