While I like the idea of having a common place for configuration (have to be 
backup-ed), caches (no need for backup), etc. I am not a fan of dealing with 
too many platform specific stuff. 
So I want to hear some more voices here ...

Has someone heard from that XDG-specification before?
Are there other "usually used directories" for other platforms than FreeDesktop?

If we decide to support this, I think I haven't found the right place, but 
IvySettings was my last location I had a view.
I could think about a mechanism that sets default values here according to 
their priority. *1 So the defaults for FreeDesktop would overwrite global Ivy 
defaults but not the values defined by the user (ivysettings.xml, system 
properties). And the FD defaults would also be available only on FD (damn, 
testability ...).


*1: Reminds me to Apache Deltaspike Config with its DataSources. ;)

-----Urspr√ľngliche Nachricht-----
Von: Simon Ochsenreither (JIRA) [mailto:j...@apache.org] 
Gesendet: Sonntag, 29. Oktober 2017 14:23
An: notificati...@ant.apache.org
Betreff: [jira] [Commented] (IVY-1502) Be a nice freedesktop citizen, move the 
~/.ivy to the appropriate location


Simon Ochsenreither commented on IVY-1502:

Hi [~jhm], I have reviewed the code that implements the existing functionality, 
but no checks for the standard dirs happen there.

Of course it can be configured, but that's not the issue: The reason why people 
want applications and libraries to follow standards is that they don't want to 
configure each and every one of them manually.

>  Be a nice freedesktop citizen, move the ~/.ivy to the appropriate 
> location
> ----------------------------------------------------------------------
> ------
>                 Key: IVY-1502
>                 URL: https://issues.apache.org/jira/browse/IVY-1502
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.0
>         Environment: linux
>            Reporter: PerfectCarl
>            Priority: Minor
> According to the XDG specification [1], there is a better way to store the 
> user specific data of an application by dumping in new hidden folder in ~/.
> More information about it can be found [2] The specification defines 
> places to store the data so that the user profile can be updated and moved 
> properly while reducing some weird bugs.
> Those places would be ~/.local/ivy or ~/.cache/ivy and other 
> (depending on the data stored)
> [1]: 
> http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
> [2]: https://ploum.net/207-modify-your-application-to-use-xdg-folders/

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to