PR: MNG-1288

Submitted by: Victor Yushenko
avoid copying directory over the top of itself

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-24 03:43:34 +00:00
parent 6102a9cf29
commit 910b4ecd3f
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ public abstract class AbstractWarMojo
File webappClassesDirectory = new File( webappDirectory, WEB_INF + "/classes" );
if ( getClassesDirectory().exists() )
if ( getClassesDirectory().exists() && (!getClassesDirectory().equals(webappClassesDirectory)))
{
FileUtils.copyDirectoryStructure( getClassesDirectory(), webappClassesDirectory );
}