FIXED : ALF-12531: MMT needs to properly support upgrading of AMP files

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@33695 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2012-02-06 15:43:56 +00:00
parent fdc9bdfe84
commit f530502bd3
3 changed files with 180 additions and 90 deletions

View File

@@ -117,6 +117,10 @@ public class InstalledFiles
throw new ModuleManagementToolException("Error whilst reading file '" + getFileLocation(), exception);
}
}
else
{
throw new ModuleManagementToolException("Invalid module. The installation file does not exist for module: "+moduleId);
}
}
/**
@@ -240,4 +244,14 @@ public class InstalledFiles
{
this.mkdirs.add(location);
}
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("InstalledFiles [warLocation=").append(this.warLocation).append(", moduleId=")
.append(this.moduleId).append(", adds=").append(this.adds).append(", updates=")
.append(this.updates).append(", mkdirs=").append(this.mkdirs).append("]");
return builder.toString();
}
}