Commit Graph

382 Commits

Author SHA1 Message Date
Michael Bayne 256b048fce Support app_id-prefixed jvmarg parameters.
This makes sense given that we already support app_id-prefixed apparg
parameters, and one might want to configure the JVM specially for different
apps from the same installation.

Note: unlike apparg, app_id-prefixed jvmargs are appended to un-prefixed
jvmargs rather than replacing them. I think this makes sense because you
probably want to specify standard JVM args and then maybe tweak a thing or two
for your other app. This is also backward compatible which is usually a good
thing. It does mean that it's harder to "undo" a jvmarg set for your "default"
app, in such cases you'd probably have to not have a default app and instead
identify all of your apps with app_ids.
2015-11-29 16:58:14 -08:00
Michael Bayne 197d3e6620 Factor out addAll(String[], List<String>). 2015-11-29 16:57:35 -08:00
Michael Bayne 1edc4e2b6f Some drive-by tidying while reviewing. 2015-10-06 13:49:00 -07:00
neher e8e4a151df Added option to hide progress text with ui.hide_progress_text 2015-10-06 21:18:41 +02:00
Michael Bayne 947e45ef05 Tidying. 2015-10-02 09:50:06 -07:00
Réda Housni Alaoui 8076999d68 #23 Digest computation on packed 200 jars should only consider jar content 2015-09-15 15:55:51 +02:00
Michael Bayne c38ddc2305 Some tidying and commenting. 2015-08-22 12:37:05 -07:00
Michael Bayne 4edcdce102 Merge branch 'pack-200' of git://github.com/Cosium/getdown 2015-08-22 12:21:39 -07:00
Réda Housni Alaoui 1b900dc2d0 https://github.com/threerings/getdown/issues/14 Add support for pack200 2015-08-22 19:00:27 +02:00
Michael Bayne 893a5d8c3b Wrapped long lines, fixed some UTF8 glyphs.
I wish we could just keep these files in UTF8 and have the accented characters
displayed directly.
2015-08-11 07:39:47 -07:00
Réda Housni Alaoui 2ea7df0d4a https://github.com/threerings/getdown/issues/18 Correct french translation 2015-08-05 00:01:16 +02:00
Michael Bayne 7a10d9a786 A bit of tidying here and there. 2015-06-23 07:14:28 -07:00
Michael Bayne 3933fee89c We still need to close fout here. 2015-06-23 07:13:49 -07:00
Stephen Neal 1fa262cd49 Clean up; close streams, readers (potential memory leaks) 2015-06-23 13:47:27 +09:30
Stephen Neal ae26c43a31 Cleanup unused imports 2015-06-23 11:10:15 +09:30
Michael Bayne c9ccb4aee0 Some tidying.
We don't like tabs, we don't like spurious blank lines, we don't like butter,
we don't like cheese.
2015-06-01 17:23:40 -07:00
phildin 3c32a119e8 Added option to hide decorations with ui.hide_decorations 2015-04-09 17:50:57 +01:00
Michael Bayne 2225ae6e97 Parse and check the version of an unpacked JVM.
This relies on the existence of a 'release' file in the top-level of the
unpacked JVM. If no 'release' file exists (or it can't be read) then we fall
back to the old behavior which is to assume that an unpacked JVM meets the
app's version requirements.

This also assumes that the java_version_regex configured for the app is capable
of parsing the version string in the release file. The release file appears to
contain a string that matches the system property 'java.version', so if you are
doing version shenanigans and using 'java.runtime.version', you need to do one
of two things:

1. Make sure your regexp can handle missing bits and that the lack of said bits
doesn't hose your version checks. For example, if you need 1.8.0_42-b15 and
your version regexp turns that into 108004215, but the release file just
contains 1.8.0_42 which your version regexp turns into 108004200, then you're
going to have a problem. But if your minimum version is some previous patch
release (say 1.8.0_25-b32) and the custom JVM you ship is 1.8.0_42, then you'll
be OK because 108004200 > 108002532.

2. Create your own 'release' file in your custom packaged JVM (or modify the
existing one) which contains a line with the following syntax:

JAVA_VERSION="VVV"

where VVV is the full version string that your regexp expects. It will be
extracted and parsed with your regexp, and everything will be peachy.
2015-03-18 10:08:59 -07:00
Michael Bayne 8d0455a03c Emit some debug info when checking Java version. 2015-03-18 09:12:37 -07:00
Michael Bayne ee4c0016d8 Allow config of sysprop used to get Java version.
For example:

java_version_prop = java.runtime.version
java_version_regex = (\d+)\.(\d+)\.(\d+)(_\d+)?(-b\d+)?

Note: double backslashes are not needed in getdown.txt.
2015-02-16 10:51:39 -08:00
Michael Bayne 985f2baaa1 Prepare for more flexible Java version parsing.
This preserves existing functionality, but accomplishes it with a general
purpose method that can parse any Java version string, given a regular
expression that matches all the number parts (which have to be in most to least
significant order).
2015-02-16 10:45:08 -08:00
Michael Bayne 8e446d96e4 Whitespace tweaks. 2015-02-16 09:46:46 -08:00
Michael Bayne 382bb2cd5b Parse java_max_version down by java_min_version. 2015-02-16 08:34:54 -08:00
Michael Bayne 4c36b312e2 Fix some Javadoc errors. 2014-11-14 08:45:27 -08:00
Michael Bayne a08a2999aa Brazilian Portuguese from brevleq. 2014-11-14 08:33:19 -08:00
Jamie Doornbos f682d7e513 Allow resources with spaces in the path.
This is in order to include a file output by unity that we have no control over.
2014-10-15 10:40:37 -07:00
noir2k 1b0cbea770 Localization messege.property for Korean language 2014-07-14 14:50:27 +09:00
Michael Bayne 9f40fadeff Better error reporting on no getdown.txt. 2014-07-07 07:52:02 -07:00
Michael Bayne df4eabbf09 Don't choke on proxy detection if allow_offline = true.
This unfortunately relies on _app.init() happening *inside* detect proxy in the
particular code path that results in failed proxy detection. I wish app.init
wasn't such a twisty maze of spaghetti, but that ship has long since sailed.
2014-04-09 07:15:47 -07:00
Michael Bayne 6134d3a967 Beans/frank. 2014-03-26 13:37:50 -07:00
Michael Bayne 5cb44526e8 Up-dates, point to LICENSE on github.com. 2014-03-10 08:25:59 -07:00
Michael Bayne b793b56a28 Reinit our UI more cleanly. 2014-02-11 11:32:53 -08:00
Michael Bayne f706ed216a Fix our bounds calculation when missing bg image. 2014-02-11 11:32:30 -08:00
Michael Bayne faece11e11 Allow specification of appbase via system property.
This allows one to bootstrap a Getdown install with no files at all. You don't
get a very sexy UI during the first install, but you can make something
non-horrible with a background color and a small window.
2014-02-11 11:13:13 -08:00
Michael Bayne c1d2946747 Provide a default background color.
Otherwise we get black text on a black background in catastrophic failure
scenarios.
2014-02-11 11:13:13 -08:00
Michael Bayne 25c4d7671c Support java_min_version as alias of java_version. 2013-12-04 11:26:42 -08:00
Michael Bayne fc817d5b1e Changed java_version_max to java_max_version.
Other tidying and consolidation.
2013-12-04 11:24:59 -08:00
Michael Bayne c098dba735 Merge pull request #1 from makkus/master
Added option to specify max Java version.
2013-12-04 11:15:31 -08:00
Michael Bayne b04e0bc4c5 Merge pull request #4 from agharta/master
Added Italian Translation
2013-12-04 11:09:06 -08:00
agharta dbac6d56d8 Added Italian Translation
Added italian translation.
2013-10-21 10:44:24 +02:00
dajaksic e9e65e41dd changed condition 2013-10-17 11:10:10 +02:00
Markus Binsteiner 1172015198 Added option to specify max Java version.
Property name in getdown.txt is: java_version_max
2013-09-24 11:30:34 +12:00
Michael Bayne 050c14844e Support basic auth when downloading latest.txt.
Fixes issue 27.
2013-04-16 08:27:39 -07:00
Michael Bayne be56b50801 Strip \r as well as \n when "one-lining" auth blob. Fixes #28. 2013-04-16 08:22:21 -07:00
Michael Bayne e74c71aa6b Added support for configuring a connect timeout when downloading metafiles. 2013-04-10 13:24:23 -07:00
Michael Bayne cfe51b4439 We need to chmod on Mac too. Err on the side of trying it. 2013-04-09 06:57:35 -07:00
Michael Bayne 07e0ba1081 Added support for java_exact_version_required. 2013-03-14 17:06:05 -07:00
Michael Bayne 7b785fa8f2 Update header with new copyright and link to LICENSE. 2013-01-29 10:36:30 -08:00
Michael Bayne 406657ff43 Extract our myriad system properties into one place.
This makes it easier to see all the secret configuration tweaks that one can
supply to Getdown if you have the esoteric knowledge.
2013-01-29 10:33:53 -08:00
Michael Bayne 431e35d3e2 Change name to getAllActiveResources for future comprehensibility. 2013-01-10 16:39:46 -08:00