Patches that were not executed (but considered) are not output on startup

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2198 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-25 12:13:32 +00:00
parent e4ca1dfb9f
commit 78052faade
7 changed files with 28 additions and 2 deletions

View File

@@ -69,7 +69,14 @@ public class PatchExecuter
// list all patches applied, including failures
for (PatchInfo patchInfo : appliedPatches)
{
if (patchInfo.getSucceeded())
if (!patchInfo.getWasExecuted())
{
// the patch was not executed
logger.debug("Applied patch (not executed): \n" +
" ID: " + patchInfo.getId() + "\n" +
" RESULT: " + patchInfo.getReport());
}
else if (patchInfo.getSucceeded())
{
logger.info("Applied patch: \n" +
" ID: " + patchInfo.getId() + "\n" +

View File

@@ -41,6 +41,8 @@ public interface PatchInfo
public Date getAppliedOnDate();
public boolean getWasExecuted();
public boolean getSucceeded();
public String getReport();

View File

@@ -209,6 +209,7 @@ public class PatchServiceImpl implements PatchService
appliedPatch.setAppliedToServer(server); // the current version and label of the server
appliedPatch.setAppliedOnDate(new Date()); // the date applied
appliedPatch.setSucceeded(success); // whether or not the patch succeeded
appliedPatch.setWasExecuted(applies); // whether or not the patch was executed
appliedPatch.setReport(report); // additional, human-readable, status
// done

View File

@@ -42,6 +42,8 @@ import org.alfresco.service.namespace.QName;
* <p>
* This class should be replaced with a more generic <code>ImporterPatch</code>
* that can do conditional importing into given locations.
* <p>
* JIRA: {@link http://www.alfresco.org/jira/browse/AR-342 AR-342}
*
* @author Derek Hulley
*/