[ 
https://issues.apache.org/jira/browse/KARAF-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Markus Rathgeb updated KARAF-4278:
----------------------------------
    Description: 
The solution for KARAF-4241 seems to break the clean at least on linux system 
(I tested on linux only).
There is a report, that it is also broken on Win7: 
http://karaf.922171.n3.nabble.com/karaf-4-0-4-clean-not-working-tp4044848.html

For the linux script:
The wildcard (don't know why two instead of one is used) is also in the quoted 
argument, so it is not evaluated by the shell.
On linux systems "hidden" files (files starting with a dot) are handled 
separately and not matched by the wildcard at all.

For Linux systems I would use:
{noformat}
rm -Rf "$KARAF_DATA"/{.[^.],.??*,*}
{noformat}

  was:
The solution for KARAF-4241 seems to break the clean at least on linux system 
(I tested on linux only).
There is a report, that it is also broken on Win7: 
http://karaf.922171.n3.nabble.com/karaf-4-0-4-clean-not-working-tp4044848.html

For the linux script:
The wildcard (don't know why two instead of one is used) is also in the quoted 
argument, so it is not evaluated by the shell.
On linux systems "hidden" files (files starting with a dot) are handled 
separately and not matched by the wildcard at all.

For Linux systems I would use:
{code:shell}
rm -Rf "$KARAF_DATA"/{.[^.],.??*,*}
{code:shell}


> clean not working
> -----------------
>
>                 Key: KARAF-4278
>                 URL: https://issues.apache.org/jira/browse/KARAF-4278
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.0.4
>            Reporter: Markus Rathgeb
>
> The solution for KARAF-4241 seems to break the clean at least on linux system 
> (I tested on linux only).
> There is a report, that it is also broken on Win7: 
> http://karaf.922171.n3.nabble.com/karaf-4-0-4-clean-not-working-tp4044848.html
> For the linux script:
> The wildcard (don't know why two instead of one is used) is also in the 
> quoted argument, so it is not evaluated by the shell.
> On linux systems "hidden" files (files starting with a dot) are handled 
> separately and not matched by the wildcard at all.
> For Linux systems I would use:
> {noformat}
> rm -Rf "$KARAF_DATA"/{.[^.],.??*,*}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to