Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support optional --cache-dir program parameter and cacheDir manifest entry #9

Closed
edvin opened this issue May 6, 2016 · 1 comment
Closed

Comments

@edvin
Copy link
Owner

edvin commented May 6, 2016

The cache dir option will override the directory the downloaded artifacts are placed in. By default, artifacts are placed in the current working directory. The program parameter --cache-dir or the manifest entry cacheDir can be specified to override this.

If the cache dir parameter starts with the magical string USERLIB/ this string will be replaced with an OS specific path. Consider the following parameter value:

fxlauncher.jar --cache-dir=USERLIB/MyApp

The result will be:

OS Location
Windows ~/AppData/MyApp
Mac ~/Library/Application Support/MyApp
Linux ~/.MyApp

This feature can be helpful in several circumstances:

  • If the application is installed in a placed where the user does not have write access
  • If there is a problem with configuring the current working directory, as seen with some Mac Java Version
  • To cache commonly used library files amongst several installed apps

The program parameter will override any configured value in the manifest, and the default will still be "the current working directory".

edvin pushed a commit that referenced this issue May 6, 2016
@edvin
Copy link
Owner Author

edvin commented May 7, 2016

Implemented in 1.0.10

@edvin edvin closed this as completed May 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant