Commit f946d711 authored by mindthegab's avatar mindthegab
Browse files

issue #267 - added logging to install amp goal

parent 603fe956
Loading
Loading
Loading
Loading
+6 −0
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 (IOException e) {
                throw new MojoExecutionException("ampLocation " + ampLocation.getAbsolutePath() + " did not contain AMP files - AMP installation cannot proceed");
            } // backup
        } else if(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
        {
            throw new MojoFailureException("ampLocation " + ampLocation.getAbsolutePath() + " was neither an AMP file or a folder containing AMP files - AMP installation cannot proceed");
+1 −1

File changed.

Contains only whitespace changes.