mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-19 17:15:24 +00:00
issue #267 - added logging to install amp goal
This commit is contained in:
parent
603fe956c6
commit
f946d711ea
@ -98,19 +98,25 @@ public class InstallMojo extends AbstractMojo {
|
|||||||
if(ampLocation.isDirectory())
|
if(ampLocation.isDirectory())
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
mmt.installModules(ampLocation.getAbsolutePath(),
|
getLog().info("Installing all AMPs from directory " + ampLocation.getAbsolutePath() + " into WAR/exploded webapp at " + warLocation.getAbsolutePath());
|
||||||
|
|
||||||
|
mmt.installModules(ampLocation.getAbsolutePath(),
|
||||||
warLocation.getAbsolutePath(), false, // preview
|
warLocation.getAbsolutePath(), false, // preview
|
||||||
force, // force install
|
force, // force install
|
||||||
backup); // backup
|
backup); // backup
|
||||||
|
getLog().info("AMPs installed successfully");
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new MojoExecutionException("ampLocation " + ampLocation.getAbsolutePath() + " did not contain AMP files - AMP installation cannot proceed");
|
throw new MojoExecutionException("ampLocation " + ampLocation.getAbsolutePath() + " did not contain AMP files - AMP installation cannot proceed");
|
||||||
} // backup
|
} // backup
|
||||||
} else if(ampLocation.isFile())
|
} else if(ampLocation.isFile())
|
||||||
{
|
{
|
||||||
|
getLog().info("Installing AMP " + ampLocation.getAbsolutePath() + " into WAR/exploded webapp at " + warLocation.getAbsolutePath());
|
||||||
mmt.installModule(ampLocation.getAbsolutePath(),
|
mmt.installModule(ampLocation.getAbsolutePath(),
|
||||||
warLocation.getAbsolutePath(), false, // preview
|
warLocation.getAbsolutePath(), false, // preview
|
||||||
force, // force install
|
force, // force install
|
||||||
backup); // backup
|
backup); // backup
|
||||||
|
getLog().info("AMP installed successfully");
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
throw new MojoFailureException("ampLocation " + ampLocation.getAbsolutePath() + " was neither an AMP file or a folder containing AMP files - AMP installation cannot proceed");
|
throw new MojoFailureException("ampLocation " + ampLocation.getAbsolutePath() + " was neither an AMP file or a folder containing AMP files - AMP installation cannot proceed");
|
||||||
|
@ -51,7 +51,7 @@ public class AmpUnArchiver extends AbstractZipUnArchiver {
|
|||||||
|
|
||||||
getLogger().info("Installing " + getSourceFile() + " into " + destLocation);
|
getLogger().info("Installing " + getSourceFile() + " into " + destLocation);
|
||||||
try {
|
try {
|
||||||
mmt.installModule(
|
mmt.installModule(
|
||||||
getSourceFile().getAbsolutePath(),
|
getSourceFile().getAbsolutePath(),
|
||||||
destLocation.getAbsolutePath(),
|
destLocation.getAbsolutePath(),
|
||||||
false, //preview
|
false, //preview
|
||||||
|
Loading…
x
Reference in New Issue
Block a user