Commit Graph

384 Commits

Author SHA1 Message Date
Ray Greenwell 3eed75b935 Set a marker system property on applications when they're run through getdown.
Also: good style is to use the result of Collection.toArray(), not the
array you pass it. There is no guarantee it will *use* your array...
2010-04-30 01:45:13 +00:00
Andrzej Kapolka 0769dcce9d Well, no, that was silly. The application arguments go after the class
name.
2010-04-29 21:48:30 +00:00
Andrzej Kapolka 557421c7bd When starting Getdown as an application, pass everything after the
application identifier as (base) jvm args.
2010-04-29 21:13:56 +00:00
Andrzej Kapolka 8c9e62f22a Updated to match Mark's original intent, which was to select values
from 100000000 to 999999999 and 1000000000 to 1999999999.  Apparently
no one used getInt(int, int) correctly.
2010-04-06 02:05:48 +00:00
Andrzej Kapolka d0778f3a2c RandomUtil.getInt -> RandomUtil.getInRange. 2010-04-05 20:50:31 +00:00
Dave Hoover ffceb6c815 Welcome to the future. 2010-01-04 21:47:35 +00:00
Mark Johnson 537586aaa8 Some more fixes to the google analytics tracking code 2009-11-03 19:03:12 +00:00
Mark Johnson a8280526d1 Removed debug code 2009-11-03 00:38:39 +00:00
Mark Johnson 36b00fbb6e - For google analytics tracking support, certain values need to be properly simulated, and
the domain hash needs to be supplied
2009-11-03 00:38:05 +00:00
Mark Johnson 4f4e380f5d Add a possible random value to the tracking URL for use with Google Analytics tracking 2009-10-30 23:05:31 +00:00
Andrzej Kapolka 2be3864e43 Not, it may not accesses. 2009-10-09 23:14:11 +00:00
Charlie Groves bfe11646bf Don't complain if text_shadow is missing as it isn't required 2009-09-04 21:06:13 +00:00
Michael Bayne 7332c71e5d Support running applications when not connected to the internets by specifying
allow_offline=true in the getdown.txt file.
2009-08-18 04:27:12 +00:00
Michael Bayne 8949cbd90a Exit with return code 255 rather than -1 in the event of error. Also exit with
an error if an exception is caught while generating the diffs.
2009-08-18 04:17:43 +00:00
Charlie Groves 31cace3107 @Override, generics and unused imports 2009-08-17 20:13:31 +00:00
Michael Bayne a31171c575 Out with commons-io. 2009-07-12 21:36:25 +00:00
Michael Bayne 04067d73ef Oops. Can't do that. 2009-04-17 22:58:15 +00:00
Michael Bayne 3d1985845d Allow 1.6 source but continue to target 1.5 bytecode. 2009-04-17 22:50:12 +00:00
Michael Bayne 5c89ab4564 More tainting bits. 2009-03-05 02:18:31 +00:00
Mike Thomas b677ba4aec Remove 1.5ism Boolean.parseBoolean(). 2009-03-04 19:11:53 +00:00
Charlie Groves 3fb0689937 Due to cutbacks, environment.txt is now called env.txt. Also, yohoho released with the environment
clobbering version of getdown from r274, and that environment clobbering seems to prevent launching
on Linux and some Windows installs.  Now if we want to release with the fixed version of environment
setting and an environment.txt, the clobbering version will run as part of the update, process the
newly downloaded environment.txt, and never launch again.  By renaming it env.txt, we can skirt
around that whole fiasco and environment setting won't go into effect until the new getdown is
running.
2009-02-25 00:30:14 +00:00
Charlie Groves 4018636aa1 Only set application specific environment variables if this is being launched by 1.5 or later and the existing environment can be passed on as well 2009-02-23 22:39:58 +00:00
Charlie Groves 81e4a792fd Allow environmental variables for the launched application to be specified as pairs in
environment.txt from the app
2009-02-12 01:44:06 +00:00
Matt Jensen 8563d9dcb8 Keeping the StatusPanel from trying to draw labels with a negative width. This seems to happen in the case where the StatusPanel is removed from its container (getWidth() == 0), and it is not currently visible. 2009-02-01 02:19:23 +00:00
Matt Jensen da96479baa Completed comment. 2009-02-01 00:03:45 +00:00
Matt Jensen 3e598302f6 Reverting getdown.pro changes. I'll use the virgin getdown.jar instead. 2009-01-27 19:01:57 +00:00
Matt Jensen 85d3456d97 Extracted common Getdown applet config functionality so that it can be reused by applets that are doing more that just Getdown. 2009-01-21 20:58:32 +00:00
Matt Jensen 0453991622 Added StatusPanel as an ImageObserver when drawing the background image. 2008-12-19 20:21:09 +00:00
Matt Jensen 4071e98ab5 Added some javadocs. 2008-12-19 01:14:20 +00:00
Matt Jensen d85b6a0122 Allowing the initial status location and color to be set in case an error occurs before getdown.txt has been read (as is the case when the user rejects our certificate). 2008-12-19 00:53:24 +00:00
Michael Bayne ab121cf012 Formatting cleanup. 2008-11-11 20:52:45 +00:00
Michael Bayne 031cafe6b3 Switched Getdown from LGPL to BSD to alleviate (baseless) nervousness with
regard to the GPL and redistribution.
2008-10-23 21:25:45 +00:00
Michael Bayne 9a5e6ce17e Converted Getdown over to the new samskivert Logger. Added a patch from Elias
to recreate getdown.txt using the information provided to the applet if the
version on the filesystem is corrupt or references an old appbase.
2008-10-23 21:00:12 +00:00
Mike Thomas 6f9b70e970 Roll back the win_install_to_program_files option - it didn't work anyway. 2008-08-29 21:08:34 +00:00
Mike Thomas 23f87645b8 GungHo really, really wants us installing to Program Files. This almost surely creates permission problems but since they require all their users to be running in a mode that gives them full access to Program Files, I guess they may be okay. So, add the win_install_to_program_files parameter we can pass to the getdown applet. 2008-08-29 18:55:58 +00:00
Mike Thomas 6fc37141c7 Slightly more robust handling of missing install error URL to use the default bits. 2008-08-12 18:58:17 +00:00
Charlie Groves c5ac51be40 Need to add the ant-contrib tasks to use if from it 2008-07-15 19:05:15 +00:00
Charlie Groves da393149db Allow getdown applets to specify an app_properties param which contains a comma
separated list of system properties specified as <key>=<value> to set on the
launched application.
2008-07-15 01:50:55 +00:00
Charlie Groves 152f016f92 Release the lock whenever the applet finishes 2008-06-12 23:37:07 +00:00
Par Winzell 3ac8ce2e70 Make getdown's proguard aware that Mac OS X calls rt.jar something else. Hurray, ooo-libs finally compiles all the way through on a Mac. 2008-06-05 13:41:04 +00:00
Michael Bayne 989b9942a8 Add support for a frame target for redirect_on_finish URLs by request from
Elias.
2008-04-03 23:56:13 +00:00
Charlie Groves 98c4bc0925 Added missing translations from Hagen 2008-03-07 19:19:36 +00:00
Charlie Groves d94eab8223 Remove option to disable file locking 2008-03-07 06:28:22 +00:00
Charlie Groves cb6732e1cb If specified, swap in a background image from ui.error_background in
getdown.txt or the errorbgimage param in the applet if getdown fails.
2008-03-07 06:20:40 +00:00
Charlie Groves d97c3431e3 Criminy! I left my debugging code in that makes the delay a quarter of what it's set to 2008-02-05 23:04:56 +00:00
Charlie Groves 94b6c332bf another getdown auf deutsch 2008-01-29 21:18:16 +00:00
Charlie Groves 818f737d25 Interrupt getdown's thread when the applet gets a stop message, and pick up on that from getdown so we don't keep working silently in the background and launch 2008-01-29 19:08:44 +00:00
Charlie Groves 95ad066fc2 Java 6 runs applets in the same browser in the same vm, so a second instance will get an OverlappingFileLockException 2008-01-29 00:37:47 +00:00
Charlie Groves 1b543ab2d7 1. proguard renames classes a-z and then switches to caps after the first 26
2. getdown uses 30 classes from samskivert.util
3. Macs have case-preserving, case-insensitive filesystems
4. getdown unpacks its proguarded jar to combine it with the retroweaver runtime

With these 4 conditions in place, getdown-retro-pro will bafflingly lack
certain classes.  Using the update attribute on ant's jar task allows the
runtime to be inserted without proguarded files touching the filesystem, and I
can start regrowing my hair.
2008-01-28 22:25:20 +00:00
Charlie Groves ef42ff053a Reenable locking, but only when -Dlock=true is passed on the command line or a
lock="true" param is passed to the applet.

Release the lock when launching the application directly from getdown,
navigating away from the applet and borking.  Hopefully one of the first two
releases will allow invoking directly to work in an applet, but applets seem to
share the lock on my Mac, so I haven't been able to test it.
2008-01-28 02:22:41 +00:00