Commit 55a23d394f8710bf88a5a66e5b98913c76a054f7

Authored by Steven Glover
1 parent 3e27a1b94c
Exists in master

REPO-1486 "Create Build Plans" add distribution management to pom, tidy up Readme

Showing 2 changed files with 17 additions and 23 deletions   Show diff stats
1   -This library adds a scheduled job that will empty your Alfresco trashcan according to configuration.
2   -It receives as parameters (configured on alfresco-global.properties):
  1 +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:
3 2  
4 3 trashcan.cron=0 30 * * * ?
5   -
6   -trashcan.daysToKeep=1
7   -
  4 +trashcan.daysToKeep=P1D
8 5 trashcan.deleteBatchCount=1000
9 6  
10   -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).
11   -In case you wish to delete all items (to the max number set) irrespective of the archived date just set trashcan.daysToKeep to -1.
12   -
13   -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).
14   -
15   -This has been tested for:
16   -
17   -- Alfresco Enterprise 4.1.1.3 (use version https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/1.2.0)
18   -
19   -- Alfresco Community 4.2.e (use version - https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/v2.0.0) - only unit tests
20   -
21   -- Alfresco Enterprise 4.2.0 (last version - https://github.com/rjmfernandes/alfresco-trashcan-cleaner/tree/v2.1.0) - only unit tests
22   -
23   -If you want to add log related to this job, just add to log4j.properties:
  7 +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).
24 8  
25   -log4j.logger.org.alfresco.trashcan=debug
  9 +To enable debug logging:
26 10  
27   -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).
28   -The new trashcan cleaner does not try to delete those references.
  11 +log4j.logger.org.alfresco.trashcan=debug
29 12 \ No newline at end of file
... ...
... ... @@ -126,7 +126,18 @@
126 126 </plugins>
127 127 </pluginManagement>
128 128 </build>
129   -
  129 +
  130 + <distributionManagement>
  131 + <repository>
  132 + <id>alfresco-internal</id>
  133 + <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-releases</url>
  134 + </repository>
  135 + <snapshotRepository>
  136 + <id>alfresco-internal-snapshots</id>
  137 + <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-snapshots</url>
  138 + </snapshotRepository>
  139 + </distributionManagement>
  140 +
130 141 <profiles>
131 142 <profile>
132 143 <!-- Wipe the database before starting tests -->
... ...