Changed check for descriptor and manifest on WAR files only, not exploded dirs.

Fixes issue 107

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@662 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
rgauss 2013-01-24 02:04:03 +00:00
parent 2ef8794fa1
commit ed0bde637b

View File

@ -109,11 +109,11 @@ public class InstallMojo extends AbstractMojo {
}
File descriptor = new File(warLocation.getPath() + File.separator + WEBAPP_DESCRIPTOR_PATH);
if(!descriptor.exists())
if(warLocation.isDirectory() && !descriptor.exists())
throw new MojoExecutionException("No webapp found in " + descriptor.getAbsolutePath() + ". AMP installation cannot proceed. Are you binding amp:install to the right phase?");
File manifest = new File(warLocation.getPath() + File.separator + WEBAPP_MANIFEST_PATH);
if(!manifest.exists())
if(warLocation.isDirectory() && !manifest.exists())
throw new MojoExecutionException("No MANIFEST.MF found in " + manifest.getAbsolutePath() + ". AMP installation cannot proceed. Are you binding amp:install to the right phase?");
}
}