builder/src/main/java/net/happyonroad/builder/SpringComponentPackaging.java
protected void copyFile(File artifact, File dest, File prevent) throws IOException, MojoExecutionException {
        if (dest.exists()) {
            if (prevent.exists())
                //noinspection ResultOfMethodCallIgnored
                prevent.delete();
        } else {
            if (prevent.exists())
                org.apache.commons.io.FileUtils.moveFile(prevent, dest);
            else
                super.copyFile(artifact, dest);
        }
    }
protected void copyFile(File artifact, File dest, File prevent) throws IOException, MojoExecutionException {
        if (dest.exists()) {
            if (prevent.exists())
                //noinspection ResultOfMethodCallIgnored
                prevent.delete();
        } else {
            if (prevent.exists())
                org.apache.commons.io.FileUtils.moveFile(prevent, dest);
            else
                super.copyFile(artifact, dest);
        }
    }
protected void copyFile ( File artifact , File dest , File prevent ) throws IOException , MojoExecutionException { if ( dest . exists ( ) ) { if ( prevent . exists ( ) ) //noinspection ResultOfMethodCallIgnored prevent . delete ( ) ; } else { if ( prevent . exists ( ) ) org . apache . commons . io . FileUtils . moveFile ( prevent , dest ) ; else super . copyFile ( artifact , dest ) ; } }
<h2>把artifact文件copy到目标文件，如果另外一个相应的文件存在，则移动之</h2>

@param artifact 原始文件
@param dest     目标文件
@param prevent  防止的文件
<h2 > 把artifact文件copy到目标文件，如果另外一个相应的文件存在，则移动之< / h2 >