Commit Graph

994 Commits

Author SHA1 Message Date
Michael Bayne d7d937c2a1 Use a resource attribute instead of a param. 2018-11-30 11:31:59 -08:00
Michael Bayne 37b6575ca7 Merge pull request #170 from pb00068/unPackFix
Fix for #112, installing a newer JVM leaves parts of the old JVM
2018-11-30 11:20:27 -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
Guenther Demetz a072718d4e Checking Java version only after getdown.txt has been re-fetched.
Typical use case is a security patch, were a new java patch 
(java_windows.jar) is put on server side and java_min_version updated
accordingly in getdown.txt

Currently the new virtual machine will be downloaded only after 
a second getdown launch. This pull request fixes this.
2018-11-29 09:34:44 +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 a177bae01d Prep for 1.8.2 release. 2018-11-27 13:34:30 -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 5c0c8bfddf Update in preparation for release. 2018-11-26 14:31:47 -08:00
Michael Bayne d7ec1baa60 Avoid using UI if we're in a headless JVM.
Closes #131.
2018-11-26 13:28:51 -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
Michael Bayne 0bd22aaacc Merge pull request #160 from vatsal22/master
Introduced a new option called sysargs to bootstrap.properties...
2018-11-26 12:43:34 -08:00
Michael Bayne 469f4feb0a Auto-create app dir if we have an appbase.
We were already doing this for bootstrap.properties-based launches, but there's
no reason to restrict it to that. If you run Getdown with an appbase and an
appdir, it can create the app dir and download the app into it.

This enables scenarios where getdown is installed to a shared location and
users that run the app install it in their private storage area (or on a
machine local file system, or who knows).

Closes #163.
2018-11-26 12:40:18 -08:00
Michael Bayne 2fbc7cb12c Fix bug in EnvConfig, add tests.
Fixes #164.
2018-11-26 12:20:50 -08:00
Michael Bayne 11343297a0 Keep the changelog up to date. 2018-11-26 11:33:15 -08:00
Michael Bayne e0d119d87b A bunch of cleanup of the concurrent downloads PR.
- Max concurrent downloads is controlled by a config in getdown.txt:
  max_concurrent_downloads. It defaults to two.

- A bunch of thread-safety problems were fixed.

- While in there, I revamped the downloader to be less crufty from years of
  ad-hoc requirements accretion.

- I disabled the Channel.transferFrom based download change because it prevents
  fine-grained feedback (and abort checking) from taking place, and it doesn't
  handle failure cases. Maybe we'll clean it up and re-enable it in the future.
2018-11-26 11:25:37 -08:00
Michael Bayne 21fba32915 Merge pull request #162 from vatsal22/concurrent1
Download files concurrently
2018-11-26 10:14:21 -08:00
vsolanki 8408f10eff Download files concurrently 2018-11-21 10:05:20 -05:00
Michael Bayne 3ed6bb2a48 Notes on per-platform installers.
Let's make sure people know what they're getting into right away.
2018-11-20 08:54:53 -08:00
Michael Bayne 93c8014302 Be less cloy. 2018-11-20 08:46:48 -08:00
Michael Bayne e11f2ebd48 Explain the three artifacts in the README.
Also link directly to their Maven sub-directories to avoid confusion with old
versions.
2018-11-20 08:42:37 -08:00
Michael Bayne df2ff3fddb Always use a thread pool of at least size 1.
Fixes #161.
2018-11-19 19:36:13 -08:00
vsolanki 94d7852324 Typo 2018-11-19 10:40:06 -05:00
vsolanki 901b1c03e2 Introduced a new option called sysargs to bootstrap.properties to allow the setting of system properties during the bootstrap setup
Usage: sysargs = [key1]:[val1], [key2]:[val2], [key3]
2018-11-19 09:07:01 -05:00
Michael Bayne 3b888a72b7 Escape special chars in env var replacements. 2018-11-15 08:32:39 -08:00
Michael Bayne 85c578f861 Removed bits about non-Java apps; added JWS caveat.
Closes #157
2018-11-09 14:14:20 -08:00
Michael Bayne 5fd28d9211 Need www on SK link. 2018-11-02 08:36:02 -07:00
Michael Bayne 826e744562 Fix SK link. 2018-11-02 08:32:56 -07:00
Michael Bayne d440e0346c Remove legacy Ant build.
It hasn't worked in years.

Closes #155
2018-11-02 08:30:14 -07:00
Michael Bayne bb6a6c3a64 Refer to main Maven Central directory.
There's no longer a single jar file to talk about, and sending people to the
directory saves us from having to update README every time we do a release.

Fixes #152
2018-10-29 14:51:39 -07:00
Michael Bayne a0c4edfc67 Notes for 1.7.1 and 1.8.0 releases. 2018-10-19 10:17:24 -07:00
Michael Bayne d4884d5388 [maven-release-plugin] prepare for next development iteration 2018-10-19 09:50:39 -07:00
Michael Bayne 9edca56628 [maven-release-plugin] prepare release getdown-1.8.0 2018-10-19 09:50:29 -07:00
Michael Bayne 70e27095db Ignore top-level target directory.
That is created during the release process.
2018-10-19 09:49:15 -07:00
Michael Bayne 0efc039a17 Fix Javadoc error. 2018-10-19 09:48:43 -07:00
Michael Bayne 2bc0fc970e Add notes on upcoming 1.8.0 release. 2018-10-19 09:44:40 -07:00
Michael Bayne 0f5622df72 Allow thread pool to be sized with -Dthread_pool_size.
Also use num processors minus one instead of num processors.
2018-10-03 08:47:44 -07:00
Michael Bayne 5499969b2c Fix bug in argv apparg parsing. 2018-09-25 09:12:28 -07:00
Michael Bayne 883954c3e5 Consolidate & enhance "environment config" handling.
The new code is more careful about how it obtains config info, and issues
warnings when sources of info conflict. It does not abort in such circumstances
as Getdown's prime directive is to do the best it can to get the app updated
and launched. But the warnings will hopefully allow accidental conflicts to be
detected and avoided before being deployed to customers.

We also now allow bootstrap.properties to provide an appid; that matches what
was possible via system properties and command line arguments. We also avoid
"communicating" environment configuration through the Java system properties
mechanism. We now read from sysprops but do not write back to them.

Lastly, this includes some name tidying (like appdir -> appDir and
getAppdir -> getAppDir).
2018-09-17 13:44:14 -07:00
Michael Bayne ed22142488 Merge pull request #140 from vgropp/bootstrap.properties
load bootstrap.properties from getdown-launcher.jar
2018-09-17 10:44:46 -07:00
gropp_volker 38427cbc1e load bootstrap.properties from resource bundle 2018-09-17 17:36:14 +02:00
Michael Bayne 2bd10cf8a1 Use logging system in code run "inside" Getdown.
Command line tools may still use stdout/stderr directly.
2018-09-14 15:01:31 -07:00
Michael Bayne 935f77e3e8 Merge pull request #135 from sdgx/dos-start-delay
Small DoS mitigation: add start delay sanity check
2018-09-14 14:49:53 -07:00
Michael Bayne 2f0eae9753 Excise additional samskivert code. 2018-09-14 14:48:58 -07:00
Michael Bayne 24a23637a7 Avoid samskivert StringUtil import.
I thought I excised all of these except the Swing stuff, but apparently not.
I will finish that job.
2018-09-14 14:38:22 -07:00
Michael Bayne 0548befe2b Replace singleton with static methods.
Apologies for messing with code after the fact, but some OOPisms are just too
much for me to stomach. This should just be a function of two arguments. No
objects required.

Yes, we're now reparsing the whitelist on every call, but this function is
called only a handful of times.
2018-09-14 14:36:23 -07:00