Changes for plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java: 6 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -98,19 +98,25 @@ public class InstallMojo extends AbstractMojo {
if(ampLocation.isDirectory())
{
try{
getLog().info("Installing all AMPs from directory "+ampLocation.getAbsolutePath()+" into WAR/exploded webapp at "+warLocation.getAbsolutePath());
mmt.installModules(ampLocation.getAbsolutePath(),
warLocation.getAbsolutePath(),false,// preview
force,// force install
backup);// backup
getLog().info("AMPs installed successfully");
}catch(IOExceptione){
thrownewMojoExecutionException("ampLocation "+ampLocation.getAbsolutePath()+" did not contain AMP files - AMP installation cannot proceed");
}// backup
}elseif(ampLocation.isFile())
{
getLog().info("Installing AMP "+ampLocation.getAbsolutePath()+" into WAR/exploded webapp at "+warLocation.getAbsolutePath());
mmt.installModule(ampLocation.getAbsolutePath(),
warLocation.getAbsolutePath(),false,// preview
force,// force install
backup);// backup
getLog().info("AMP installed successfully");
}else
{
thrownewMojoFailureException("ampLocation "+ampLocation.getAbsolutePath()+" was neither an AMP file or a folder containing AMP files - AMP installation cannot proceed");