Commit Graph

92 Commits

Author SHA1 Message Date
Michael Bayne f087863098 Merge branch 'master' into feature/code-cleanup 2019-05-28 16:16:21 -07:00
Michael Bayne 6af6081648 Support PAC proxies.
What a horrible wart lingering from the early days of the Internet. Note to
future designers: please do not express configuration using a Turing complete
language.

Thanks jenriq for getting the ball rolling on this.

Closes #196.
2019-05-28 16:04:42 -07:00
sergiorussia b57524d0d6 fixed exception logging 2019-05-28 23:37:11 +03:00
Michael Bayne 490420852e Bit of cleanup of config parsing. 2019-05-28 11:15:45 -07:00
Michael Bayne ac499c1e3c Merge pull request #220 from sergiorussia/bugfix/digester-with-platform
fixed digesting with platform specifier for java, tracking and args
2019-05-28 10:48:53 -07:00
Michael Bayne c45615f0a0 Add changelog, undo null tolerance.
Null tolerance is a plague. I wish `String` did not admit nulls and we had to
use Optional<String> for potentially null strings, but Java will forever be
cursed with the billion dollar mistake.
2019-05-28 10:30:26 -07:00
e507802 c8901cadf2 allow appbase and latest URL to use ENV variables too 2019-05-28 10:34:14 +02:00
sergiorussia 0d384966a6 dropped obsolete comment 2019-05-27 23:11:28 +03:00
sergiorussia 01825b6f88 fixed digesting with platform specifier for java, tracking and args configs 2019-05-27 23:02:57 +03:00
Michael Bayne daf459e063 Pass proxy info from Proxy object to launched app. 2019-05-20 09:31:06 -07:00
Michael Bayne 330061deab [maven-release-plugin] prepare for next development iteration 2019-05-14 10:31:30 -07:00
Michael Bayne 57c124cc97 [maven-release-plugin] prepare release getdown-1.8.4 2019-05-14 10:31:21 -07:00
Michael Bayne dca5d69f9f Various formatting & style blah blah. 2019-05-09 10:34:35 -07:00
Michael Bayne 4065acd77e If we're creating a .jar file, use a JarOutputStream.
JOS stuffs some secret data into the zip extension slot, so we can't just
create a .jar file with a ZipOutputStream and call it a day.
2019-05-09 10:33:20 -07:00
Michael Bayne 4a1376093e Merge pull request #210 from sergiorussia/feature/zip-files-support
zip files supported as resources
2019-05-09 09:48:10 -07:00
Michael Bayne 339faa8260 Fix incorrect handling of args in format.
This is what I get for replacing the battle tested samskivert code with a quick
rewrite.
2019-05-09 09:33:41 -07:00
sergiorussia 7cf4ce0b2f unit tests 2019-05-05 18:06:52 +03:00
sergiorussia 4973da5e45 revert non-related changes, small fixes 2019-05-05 17:24:38 +03:00
sergiorussia c17882f432 zip files support 2019-05-05 17:09:51 +03:00
Michael Bayne b2263104e6 Small formatting tweaks. 2019-05-03 13:45:44 -07:00
Michael Bayne 18d449166c Merge pull request #206 from sergiorussia/feature/java_local_dir
enable custom java local dir instead of hardcoded "java_vm"
2019-05-03 13:34:32 -07:00
sergiorussia f7a5092116 review fixes 2019-05-01 00:18:47 +03:00
Michael Bayne 901682d5f7 timeout_verify -> verify_timeout. 2019-04-30 10:58:46 -07:00
Michael Bayne eb8a2da9d8 Merge branch 'master' into timeoutVerify 2019-04-30 10:55:10 -07:00
sergiorussia 557e615862 review fixes 2019-04-15 21:10:12 +03:00
sergiorussia e253db10be enable custom java local dir instead of hardcoded "java_vm" 2019-04-14 01:18:13 +03:00
Michael Bayne dcfd113dbf [maven-release-plugin] prepare for next development iteration 2019-04-10 11:45:13 -07:00
Michael Bayne a223f40549 [maven-release-plugin] prepare release getdown-1.8.3 2019-04-10 11:45:04 -07:00
Michael Bayne 8d59367742 Default to current working directory if no appdir is provided. 2019-04-10 11:35:55 -07:00
gropp_volker 8e520e7a25 add config timeout_verify
- remove hardcoded 60 seconds timeout during verify, as with pack200
this may fail on slow systems
- introduce new config "timeout_verify" with 60 seconds default
- handle timeout with aborting the launch
2019-03-13 11:28:14 +01:00
Michael Bayne f7586cf601 More formatting tweaks. 2019-02-25 17:58:48 -08:00
Myron Boyle d24d12a6c4 add -Dsilent=noupdate, to just start the app w/o any updates 2019-02-25 14:33:51 +01:00
Michael Bayne ae129fad6f Added support for proxy auth.
This also makes the use of a Proxy instance explicit in the Getdown code,
rather than trying to thread things through the proxy-related system
properties.

It introduces a ProxyAuth SPI which allows an app installation to save proxy
credentials in whatever way it deems fit. Otherwise the credentials are unsaved
and the user effectively has to enter them every time Getdown attempts to
access the internet.

This is obviously a terrible design, but there's no good (cross-platform) way
to securely store a username and password. So anyone using this feature is
likely going to need to provide an implementation of ProxyAuth that does
whatever auth storage they deem appropriate.

Adapted from PR from @ThomasG-AI, thanks!
2019-01-15 12:27:05 -08:00
Michael Bayne 9402d7c900 Update copyright headers. 2018-12-06 11:55:49 -08:00
Michael Bayne 16b8b836e4 Clean up the nresource patch & older code cache stuff.
Two important changes:

1. Don't change the name of the code cache dir as that would leave a stale code
cache around on old installations that were using the code cache.

2. Don't create a native libs cache dir if there are no native resources.

Everything else is mostly cosmetic and organizational.
2018-12-06 11:51:15 -08:00
vsolanki 86723193e6 Use nresource=[native jar] to add contents of resource to java.library.path
This feature makes use of the current caching system for "code" jars. Resources marked by nresource are copied to specific cache directories, unpacked, and then the caches are added to the applications java.library.path. This "native" cache is cleaned according to "cache_retention_days", similar to the code cache.
2018-12-05 12:00:58 -05:00
Michael Bayne 9f2071f152 Minor reorg & fix all "config UI when getdown.txt" changes issues. 2018-12-01 20:00:03 -08:00
Michael Bayne f4679b4a36 Merge pull request #172 from vatsal22/Predownloads
Use presource=[resource] to "predownload" resource
2018-11-30 14:49:56 -08:00
vsolanki cca7749dc8 Use presource=[resource] to "predownload" resource
-these will be downloaded before a UI is displayed, allowing them to be
loaded on first launch
2018-11-30 15:40:51 -05:00
Michael Bayne c8226b83ee Default concurrent download count to #CPUS-1. 2018-11-30 11:41:59 -08:00
Michael Bayne d7d937c2a1 Use a resource attribute instead of a param. 2018-11-30 11:31:59 -08:00
Guenther Demetz dd9c83a347 Fix for #112
Cleans content of each found directory when unpacking a new java_vm.
Fixes the problem when java_wm was build using standard jar. 
For pack200 this remains unresolved.
2018-11-29 10:24:20 +01:00
Michael Bayne ac876a36ef [maven-release-plugin] prepare for next development iteration 2018-11-27 13:35:37 -08:00
Michael Bayne 7f8add0322 [maven-release-plugin] prepare release getdown-1.8.2 2018-11-27 13:35:31 -08:00
Michael Bayne 7a8de58e4d Egads, don't share a download buffer.
Fragile assumptions, they plague us.

Fixes #166
2018-11-27 13:33:11 -08:00
Michael Bayne 8017dcc359 Properly handle just an exception as a logging arg. 2018-11-27 13:30:31 -08:00
Michael Bayne 555d28a80a [maven-release-plugin] prepare for next development iteration 2018-11-26 14:33:07 -08:00
Michael Bayne 2523ba285b [maven-release-plugin] prepare release getdown-1.8.1 2018-11-26 14:32:57 -08:00
Michael Bayne 4d40bc53db Shutdown our verifier thread pool when we're done. 2018-11-26 13:15:05 -08:00
Michael Bayne 9dd8285243 Use a "sys." prefix instead of custom parsing. 2018-11-26 13:11:32 -08:00