Commit Graph

99 Commits

Author SHA1 Message Date
Michael Bayne d41a817b55 [maven-release-plugin] prepare for next development iteration 2022-05-24 10:42:36 -07:00
Michael Bayne 425e0d0c87 [maven-release-plugin] prepare release getdown-1.8.7 2022-05-24 10:42:34 -07:00
Michael Bayne 26d559e5c2 Upgrade Proguard to a version that supports Java 18.
For unfortunate reasons, we have to add a separate (build-time) dependency on
proguard-core, code from which proguard-base relies on but neither includes
directly nor expresses as a dependency.

How is it in the year of our lord two thousand and twenty two, we are still
making such basic build errors in our Maven plugins and POM files?
2022-05-24 10:24:58 -07:00
Michael Bayne 49279009cb Use newer Proguard that can handle JDK14.
Unfortunately due to a bug in proguard-maven-plugin I can't currently use a
version of Proguard that supports JDK15.
2021-04-05 07:43:10 -07:00
Michael Bayne cedf568383 Merge pull request #240 from Cosium/java.net.useSystemProxies
Usage of Proxy.NO_PROXY prevents -Djava.net.useSystemProxies=true from kicking in
2021-04-05 07:29:42 -07:00
Michael Bayne 1c0320b36d Use Graal JavaScript VM.
Nashorn was removed in JDK15, but the PAC proxy detection code depends on
having a JavaScript VM (what a twisty maze of passages). Rather than remove it
completely, I'll just keep the tests working so that people who use Getdown
with PAC proxies on JDK 14 or earlier can keep on trucking.

Perhaps the JavaScript code could be rewritten in Java and this weird massive
dependency could be eliminated?
2021-04-04 12:23:18 -07:00
Michael Bayne 09ed5b0f2c Merge pull request #246 from threerings/dependabot/maven/launcher/junit-junit-4.13.1
Bump junit from 4.12 to 4.13.1 in /launcher
2021-04-04 12:09:06 -07:00
Giedrius Zavadskis 332f7f15e3 Do resource cleanup only if resources have to be updated.
(cherry picked from commit 37fed0570e1eb3ac520256761760a8e311889b51)
2021-03-31 10:31:51 +03:00
Giedrius Zavadskis 79420067b2 Adds support for glob 'cleanup_pattern' to facilitate removal of obsolete resources
(cherry picked from commit 515ed2e049dbc4e76d4e35d89ec2c674e87d3e6d)
2021-03-29 10:53:16 +03:00
dependabot[bot] eff8e31299 Bump junit from 4.12 to 4.13.1 in /launcher
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 13:31:24 +00:00
Réda Housni Alaoui 736dfffd04 Usage of Proxy.NO_PROXY prevents -Djava.net.useSystemProxies=true from kicking in 2020-06-12 14:27:56 +02:00
Michael Bayne 0c8a29deb0 Upgrade Proguard to work with Java >8. 2020-01-06 13:38:31 -08:00
Michael Bayne 3d62949fe7 Fix indentation. No tabs. 2019-07-02 08:10:08 -07:00
Guenther Demetz 338b5a66ef fix catch 2019-06-06 10:39:14 +02:00
Guenther Demetz 305fc314ab Merge branch 'master' into noEngineAvailable 2019-06-06 10:28:10 +02:00
Guenther Demetz fbc383d942 Avoid launcher abort due missing engine 2019-06-06 10:26:19 +02:00
Michael Bayne e7818030a7 Behave more gracefully when patch files do not exist.
It is possible to use versioned mode without patch files, though there's no way
to specifically tell Getdown whether or not you are using patch files, so it
always tries to download them. If they don't exist, it should now log one
reasonable warning and then proceed to update based on resource hashes.
2019-06-05 16:09:51 -07:00
Michael Bayne 157b12dbfa Oops, forgot to hook up myIpAddress(). 2019-06-05 15:45:03 -07:00
Michael Bayne 5cb2613e3b [maven-release-plugin] prepare for next development iteration 2019-06-04 15:25:43 -07:00
Michael Bayne 6283b60776 [maven-release-plugin] prepare release getdown-1.8.6 2019-06-04 15:25:33 -07:00
Michael Bayne ce76832835 Add myIpAddress() to PAC proxy environment.
Also fixed issue with dnsResolve() in same.
2019-05-31 09:53:12 -07:00
Michael Bayne 85c4a0ddc1 Some comment fixes. 2019-05-31 09:48:30 -07:00
Guenther Demetz bc889e67fd autoDetectProxy needs initialized configuration 2019-05-31 10:47:01 +02:00
Michael Bayne b5377ca66b Use a debug system property to control debugging.
When set, it disables stdout/stderr redirection and uses java.exe on Windows so
that a console window is shown with output from the launched app.

This removes the use of a debug.txt file.
2019-05-29 14:09:17 -07:00
Michael Bayne a0bdfb1ca9 [maven-release-plugin] prepare for next development iteration 2019-05-29 12:12:06 -07:00
Michael Bayne 45350e1842 [maven-release-plugin] prepare release getdown-1.8.5 2019-05-29 12:11:57 -07:00
Michael Bayne 9a0537a6f9 Fix javadoc error. 2019-05-29 12:10:59 -07:00
Michael Bayne 9d6088ab80 Added revalidate_policy config.
This allows resources to be validated prior to every app launch instead of just
after update.

Also fixed some erroneous logging.
2019-05-29 11:40:36 -07:00
Michael Bayne a706936bce Oops, use valid URL for PAC proxy detection. 2019-05-29 10:59:54 -07:00
sergiorussia 8ad174124a added more missing translations for russian 2019-05-29 10:29:59 +03:00
Michael Bayne 0a4bfe65c4 Proxy handling now detects need for updated credentials.
This revamps the way proxy handling is done to allow us to just proceed as
normal, and then if we get HTTP errors that indicate that we need a proxy or
need proxy credentials, we ask for them and then retry everything.

We still try to auto-detect the need for a proxy on our very first invocation
because on the first invocation, a failure to fetch a URL may well indicate
that a proxy is needed, but that same assumption does not hold on subsequent
invocations. In those later cases, it's probably just a transient network
failure and it would be weird and annoying to pop up the "please provide proxy
config" dialog in those cases.

Thanks pb00068 for getting this ball rolling, even though once again I have
nearly entirely rewritten the PR. I need to kick that habit. :)
2019-05-28 23:27:44 -07:00
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 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 5734913462 Formatting tweak. 2019-05-09 10:39:58 -07:00
Anon 4e1472e4ec Use spaces instead of tabs 2019-05-09 18:34:42 +02:00
Anon 1c4daa78f9 Fix bug on mac when regenerating classes.jsa when path has spaces 2019-05-09 18:32:07 +02:00
Michael Bayne 76a6401d82 Check that local JVM is not in use before attempting update. 2019-05-03 14:03:16 -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
Michael Bayne 047e3972a0 Convert translation files from UTF-8 to (escaped) ISO-8859-1 during build.
This makes it *way* easier to view and edit the translation files and avoids
the danger of accidentally slipping UTF-8 encoded characters into existing
files during editing.
2019-04-30 10:08:40 -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 f2f418f5cf Mark depends as optional.
We bundle them into the artifact with Proguard, so they are not needed.
2019-04-10 11:28:08 -07:00