Commit ed0bde63 authored by rgauss's avatar rgauss
Browse files

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
parent 2ef8794f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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?");
    }
}
 No newline at end of file