karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Pieber (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-1563) Support clean-all & clean-cache directly in karaf main jar
Date Wed, 02 Jan 2013 07:30:13 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542044#comment-13542044
] 

Andreas Pieber edited comment on KARAF-1563 at 1/2/13 7:29 AM:
---------------------------------------------------------------

that way you can force a data dir clean by something like the following from anywhere in your
code:

new File(System.getProperty("karaf.data"), "clean_all").setLastModified(new Date().getTime());
                
      was (Author: pieber):
    that way you can force a data dir clean by something like the following from everywhere
in your code:

new File(System.getProperty("karaf.data"), "clean_all").setLastModified(new Date().getTime());
                  
> Support clean-all & clean-cache directly in karaf main jar
> ----------------------------------------------------------
>
>                 Key: KARAF-1563
>                 URL: https://issues.apache.org/jira/browse/KARAF-1563
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>    Affects Versions: 2.3.0, 3.0.0.RC1
>            Reporter: Andreas Pieber
>            Assignee: Andreas Pieber
>             Fix For: 2.4.0, 3.0.0.RC1
>
>         Attachments: KARAF-1563.patch.txt
>
>
> Currently the clean param is executed by the karaf startup scripts. Therefore it's e.g.
not possible to clear the cache if you're using karaf-wrapper. Therefore this code should
rather be moved directly in the karaf main jar instead of the script. In addition there are
situations where you don't want to delete the data folder, but rather only the cache folder
in KARAF_DATA. Therefore it's a good idea to support a clean-all option (clean is an alias
for it) and clean-cache.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message