{"action":"created","issue":{"url":"https://api.github.com/repos/georchestra/cadastrapp/issues/294","repository_url":"https://api.github.com/repos/georchestra/cadastrapp","labels_url":"https://api.github.com/repos/georchestra/cadastrapp/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/georchestra/cadastrapp/issues/294/comments","events_url":"https://api.github.com/repos/georchestra/cadastrapp/issues/294/events","html_url":"https://github.com/georchestra/cadastrapp/issues/294","id":186746173,"number":294,"title":"[webapp] bean java pour purger automatiquement les fichiers générés ?","user":{"login":"MaelREBOUX","id":6370443,"avatar_url":"https://avatars.githubusercontent.com/u/6370443?v=3","gravatar_id":"","url":"https://api.github.com/users/MaelREBOUX","html_url":"https://github.com/MaelREBOUX","followers_url":"https://api.github.com/users/MaelREBOUX/followers","following_url":"https://api.github.com/users/MaelREBOUX/following{/other_user}","gists_url":"https://api.github.com/users/MaelREBOUX/gists{/gist_id}","starred_url":"https://api.github.com/users/MaelREBOUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaelREBOUX/subscriptions","organizations_url":"https://api.github.com/users/MaelREBOUX/orgs","repos_url":"https://api.github.com/users/MaelREBOUX/repos","events_url":"https://api.github.com/users/MaelREBOUX/events{/privacy}","received_events_url":"https://api.github.com/users/MaelREBOUX/received_events","type":"User","site_admin":false},"labels":[{"id":197976787,"url":"https://api.github.com/repos/georchestra/cadastrapp/labels/question","name":"question","color":"14FFFF","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/georchestra/cadastrapp/milestones/3","html_url":"https://github.com/georchestra/cadastrapp/milestones/v1.3","labels_url":"https://api.github.com/repos/georchestra/cadastrapp/milestones/3/labels","id":1960752,"number":3,"title":"v1.3","description":"","creator":{"login":"MaelREBOUX","id":6370443,"avatar_url":"https://avatars.githubusercontent.com/u/6370443?v=3","gravatar_id":"","url":"https://api.github.com/users/MaelREBOUX","html_url":"https://github.com/MaelREBOUX","followers_url":"https://api.github.com/users/MaelREBOUX/followers","following_url":"https://api.github.com/users/MaelREBOUX/following{/other_user}","gists_url":"https://api.github.com/users/MaelREBOUX/gists{/gist_id}","starred_url":"https://api.github.com/users/MaelREBOUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaelREBOUX/subscriptions","organizations_url":"https://api.github.com/users/MaelREBOUX/orgs","repos_url":"https://api.github.com/users/MaelREBOUX/repos","events_url":"https://api.github.com/users/MaelREBOUX/events{/privacy}","received_events_url":"https://api.github.com/users/MaelREBOUX/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":1,"state":"open","created_at":"2016-08-24T15:16:09Z","updated_at":"2016-11-02T09:10:22Z","due_on":"2017-03-01T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-02T09:10:22Z","updated_at":"2016-11-02T09:49:23Z","closed_at":null,"body":"La webapp produit plusieurs types de fichiers :\r\n- bordereaux parcellaires en PDF\r\n- relevés de propriétés en PDF\r\n- exports de parcelle en CSV\r\n- exports de proprios en CSV\r\n\r\nTous ces fichiers sont créés dans un répertoire défini en plusieurs endroits : https://github.com/georchestra/cadastrapp/search?utf8=%E2%9C%93&q=tempFolder&type=Code\r\n\r\nActuellement aucun processus n'est mis en place pour purger automatiquement ces fichiers.\r\nPlutôt que de mettre en place un job cron sur l'OS, peut-on confier cette tâche de nettoyage / purge à un bean côté Java ?\r\n\r\nExemple avec extractorapp : https://github.com/georchestra/cadastrapp/blob/master/cadastrapp/src/main/webapp/WEB-INF/beans.xml\r\n\r\nA vos commentaires.\r\n"},"comment":{"url":"https://api.github.com/repos/georchestra/cadastrapp/issues/comments/257818288","html_url":"https://github.com/georchestra/cadastrapp/issues/294#issuecomment-257818288","issue_url":"https://api.github.com/repos/georchestra/cadastrapp/issues/294","id":257818288,"user":{"login":"MaelREBOUX","id":6370443,"avatar_url":"https://avatars.githubusercontent.com/u/6370443?v=3","gravatar_id":"","url":"https://api.github.com/users/MaelREBOUX","html_url":"https://github.com/MaelREBOUX","followers_url":"https://api.github.com/users/MaelREBOUX/followers","following_url":"https://api.github.com/users/MaelREBOUX/following{/other_user}","gists_url":"https://api.github.com/users/MaelREBOUX/gists{/gist_id}","starred_url":"https://api.github.com/users/MaelREBOUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaelREBOUX/subscriptions","organizations_url":"https://api.github.com/users/MaelREBOUX/orgs","repos_url":"https://api.github.com/users/MaelREBOUX/repos","events_url":"https://api.github.com/users/MaelREBOUX/events{/privacy}","received_events_url":"https://api.github.com/users/MaelREBOUX/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T09:49:23Z","updated_at":"2016-11-02T09:49:23Z","body":"Je viens de voir que [la doc sur le wiki ](https://github.com/georchestra/cadastrapp/wiki/Guide-Administrateur) indique ceci :\r\n\r\n> Les fichiers générés par l'application sont déposés dans le répertoire 'tempFolder' paramétré dans le fichier cadastrapp.properties. Ces fichiers sont supprimés à chaque redémarrage de la JVM. Ces fichiers peuvent aussi être purgés à la main, ou par un script que vous pouvez créer."}}
{"actor":{"display_login":"MaelREBOUX"}}