From 55a23d394f8710bf88a5a66e5b98913c76a054f7 Mon Sep 17 00:00:00 2001 From: Steven Glover Date: Tue, 1 Nov 2016 16:23:50 +0000 Subject: [PATCH] REPO-1486 "Create Build Plans" add distribution management to pom, tidy up Readme --- README.md | 27 +++++---------------------- pom.xml | 13 ++++++++++++- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index dc7abae..e4c2b8a 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,11 @@ -This library adds a scheduled job that will empty your Alfresco trashcan according to configuration. -It receives as parameters (configured on alfresco-global.properties): +This library adds a scheduled job that will empty your Alfresco trashcan according to configuration. The following properties can be configured in alfresco-global.properties: trashcan.cron=0 30 * * * ? - -trashcan.daysToKeep=1 - +trashcan.daysToKeep=P1D trashcan.deleteBatchCount=1000 -In the above configuration the scheduled process will clean all deleted items older than one day to a maximum of 1000 (each execution) each hour at the middle of the hour (30 minutes). -In case you wish to delete all items (to the max number set) irrespective of the archived date just set trashcan.daysToKeep to -1. - -The major differences with existing addon (http://addons.alfresco.com/addons/trashcan-cleaner) is the fact this job is not based on search engine and the scheduled job is cluster aware (uses the Alfresco org.alfresco.schedule.ScheduledJobLockExecuter). - -This has been tested for: - -- Alfresco Enterprise 4.1.1.3 (use version https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/1.2.0) - -- Alfresco Community 4.2.e (use version - https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/v2.0.0) - only unit tests - -- Alfresco Enterprise 4.2.0 (last version - https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/v2.1.0) - only unit tests - -If you want to add log related to this job, just add to log4j.properties: +In the above configuration the scheduled process will clean all deleted items older than one day to a maximum of 1000 (each execution) each hour at the middle of the hour (30 minutes). -log4j.logger.org.alfresco.trashcan=debug +To enable debug logging: -This new version takes into account the new way Alfresco 4.2 trashes content keeping a secondary parent reference inside trashcan to the original owner (those references dont have an archive date associated with it what caused an error when trying past versions of the cleaner with 4.2). -The new trashcan cleaner does not try to delete those references. +log4j.logger.org.alfresco.trashcan=debug \ No newline at end of file diff --git a/pom.xml b/pom.xml index 45a55f0..60fd625 100644 --- a/pom.xml +++ b/pom.xml @@ -126,7 +126,18 @@ - + + + + alfresco-internal + https://artifacts.alfresco.com/nexus/content/repositories/internal-releases + + + alfresco-internal-snapshots + https://artifacts.alfresco.com/nexus/content/repositories/internal-snapshots + + + -- 2.13.3