Commit Graph

  • 89229b16cd Now that the JDK is open source, we can just fork JarDiff and eliminate our annoying dependency on javaws.jar (which no longer even includes JarDiff, now that lives in $JAVA_HOME/samples/jnlp/servlet/jardiff.jar). We had already forked JarDiffPatcher, so this completes the circle. Now I can also directly fix some of the annoying JarDiff bugs we were working around, which I'll do at some point. Michael Bayne 2010-09-20 18:42:41 +00:00
  • 6a46f7ed3c Reheadered to get proper blank line between the license header and the package statement. Michael Bayne 2010-09-20 17:55:35 +00:00
  • b2df567d71 Retire never used Snark-based bittorrent downloader. Cool idea, but never turned out to be worth the PITA. Maybe someday when there's a broadly used trackerless p2p technology, we'll take another crack at this sort of thing. Michael Bayne 2010-09-20 17:54:44 +00:00
  • 525c924ea2 Put libs-incl.xml in etc/ like all our other projects. Michael Bayne 2010-09-20 17:45:08 +00:00
  • e6fbfdca38 OCD fix. Michael Bayne 2010-09-14 21:07:41 +00:00
  • b8d0122159 Comment improvement. Michael Bayne 2010-09-14 21:07:15 +00:00
  • 8451579ea9 Realized that I hadn't tested negative qualfiers, added tests, discovered that they failed. Fixed problems and added sanity checks to ensure that negative qualifiers are always used alone. Michael Bayne 2010-09-14 21:06:11 +00:00
  • 0b0e5731d4 Added support for conditionally including resources based on os.arch as well as os.name. If no architecture is specified, all architectures match, which preserves the existing behavior. Michael Bayne 2010-09-14 20:47:53 +00:00
  • ec11ccce9b Trailing blank is needed here. Michael Bayne 2010-09-14 19:44:45 +00:00
  • f63bb9a27f Moved src/java into src/main/java, added src/test/java, added build targets for tests. Some changes (and tests to make sure I'm not fucking things up) forthcoming. Michael Bayne 2010-09-14 19:43:02 +00:00
  • c3ce5cc2a9 Fix for bug where on first installation, the Getdown window is sometimes much smaller than the background image. If we're going to change the preferred size of the StatusPanel, we have to invalidate it so that Window.pack knows to recompute the bounds. The reason this worked sometimes (or even most of the time) is that there's a race condition between the Getdown thread and the AWT thread: sometimes the real interface bits (_ifc) are in place by the time initInterface is first called, sometimes not. For the sake of consistency, we should probably fix that, but for now it's not a big deal: the backgroundless interface is rarely visible. Andrzej Kapolka 2010-07-27 03:27:07 +00:00
  • 051db7ebc9 We don't use guava in getdown because we're size sensitive. Let's go further and prefer some standard java library classes, nixing reference to samskivert ones with limited utility. Ray Greenwell 2010-07-16 20:48:49 +00:00
  • 5bcaad90ce Use String.replace(). Ray Greenwell 2010-07-14 19:00:19 +00:00
  • 03d748af41 Eclipse metadata Charlie Groves 2010-06-10 20:43:58 +00:00
  • 9cb2fc49c7 That's the real signature Dave Hoover 2010-06-10 20:43:34 +00:00
  • 7990d36f25 Future events will affect you in the future. Dave Hoover 2010-06-10 20:42:43 +00:00
  • 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... Ray Greenwell 2010-04-30 01:45:13 +00:00
  • 0769dcce9d Well, no, that was silly. The application arguments go after the class name. Andrzej Kapolka 2010-04-29 21:48:30 +00:00
  • 557421c7bd When starting Getdown as an application, pass everything after the application identifier as (base) jvm args. Andrzej Kapolka 2010-04-29 21:13:56 +00:00
  • 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. Andrzej Kapolka 2010-04-06 02:05:48 +00:00
  • d0778f3a2c RandomUtil.getInt -> RandomUtil.getInRange. Andrzej Kapolka 2010-04-05 20:50:31 +00:00
  • ffceb6c815 Welcome to the future. Dave Hoover 2010-01-04 21:47:35 +00:00
  • 537586aaa8 Some more fixes to the google analytics tracking code Mark Johnson 2009-11-03 19:03:12 +00:00
  • a8280526d1 Removed debug code Mark Johnson 2009-11-03 00:38:39 +00:00
  • 36b00fbb6e - For google analytics tracking support, certain values need to be properly simulated, and the domain hash needs to be supplied Mark Johnson 2009-11-03 00:38:05 +00:00
  • 4f4e380f5d Add a possible random value to the tracking URL for use with Google Analytics tracking Mark Johnson 2009-10-30 23:05:31 +00:00
  • 2be3864e43 Not, it may not accesses. Andrzej Kapolka 2009-10-09 23:14:11 +00:00
  • bfe11646bf Don't complain if text_shadow is missing as it isn't required Charlie Groves 2009-09-04 21:06:13 +00:00
  • 7332c71e5d Support running applications when not connected to the internets by specifying allow_offline=true in the getdown.txt file. Michael Bayne 2009-08-18 04:27:12 +00:00
  • 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. Michael Bayne 2009-08-18 04:17:43 +00:00
  • 31cace3107 @Override, generics and unused imports Charlie Groves 2009-08-17 20:13:31 +00:00
  • a31171c575 Out with commons-io. Michael Bayne 2009-07-12 21:36:25 +00:00
  • 04067d73ef Oops. Can't do that. Michael Bayne 2009-04-17 22:58:15 +00:00
  • 3d1985845d Allow 1.6 source but continue to target 1.5 bytecode. Michael Bayne 2009-04-17 22:50:12 +00:00
  • 5c89ab4564 More tainting bits. Michael Bayne 2009-03-05 02:18:31 +00:00
  • b677ba4aec Remove 1.5ism Boolean.parseBoolean(). Mike Thomas 2009-03-04 19:11:53 +00:00
  • 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. Charlie Groves 2009-02-25 00:30:14 +00:00
  • 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 Charlie Groves 2009-02-23 22:39:58 +00:00
  • 81e4a792fd Allow environmental variables for the launched application to be specified as pairs in environment.txt from the app Charlie Groves 2009-02-12 01:44:06 +00:00
  • 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. Matt Jensen 2009-02-01 02:19:23 +00:00
  • da96479baa Completed comment. Matt Jensen 2009-02-01 00:03:45 +00:00
  • 3e598302f6 Reverting getdown.pro changes. I'll use the virgin getdown.jar instead. Matt Jensen 2009-01-27 19:01:57 +00:00
  • 85d3456d97 Extracted common Getdown applet config functionality so that it can be reused by applets that are doing more that just Getdown. Matt Jensen 2009-01-21 20:58:32 +00:00
  • 0453991622 Added StatusPanel as an ImageObserver when drawing the background image. Matt Jensen 2008-12-19 20:21:09 +00:00
  • 4071e98ab5 Added some javadocs. Matt Jensen 2008-12-19 01:14:20 +00:00
  • 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). Matt Jensen 2008-12-19 00:53:24 +00:00
  • ab121cf012 Formatting cleanup. Michael Bayne 2008-11-11 20:52:45 +00:00
  • 031cafe6b3 Switched Getdown from LGPL to BSD to alleviate (baseless) nervousness with regard to the GPL and redistribution. Michael Bayne 2008-10-23 21:25:45 +00:00
  • 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. Michael Bayne 2008-10-23 21:00:12 +00:00
  • 6f9b70e970 Roll back the win_install_to_program_files option - it didn't work anyway. Mike Thomas 2008-08-29 21:08:34 +00:00
  • 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. Mike Thomas 2008-08-29 18:55:58 +00:00
  • 6fc37141c7 Slightly more robust handling of missing install error URL to use the default bits. Mike Thomas 2008-08-12 18:58:17 +00:00
  • c5ac51be40 Need to add the ant-contrib tasks to use if from it Charlie Groves 2008-07-15 19:05:15 +00:00
  • 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. Charlie Groves 2008-07-15 01:50:55 +00:00
  • 152f016f92 Release the lock whenever the applet finishes Charlie Groves 2008-06-12 23:37:07 +00:00
  • 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. Par Winzell 2008-06-05 13:41:04 +00:00
  • 989b9942a8 Add support for a frame target for redirect_on_finish URLs by request from Elias. Michael Bayne 2008-04-03 23:56:13 +00:00
  • 98c4bc0925 Added missing translations from Hagen Charlie Groves 2008-03-07 19:19:36 +00:00
  • d94eab8223 Remove option to disable file locking Charlie Groves 2008-03-07 06:28:22 +00:00
  • 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. Charlie Groves 2008-03-07 06:20:40 +00:00
  • d97c3431e3 Criminy! I left my debugging code in that makes the delay a quarter of what it's set to Charlie Groves 2008-02-05 23:04:56 +00:00
  • 94b6c332bf another getdown auf deutsch Charlie Groves 2008-01-29 21:18:16 +00:00
  • 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 Charlie Groves 2008-01-29 19:08:44 +00:00
  • 95ad066fc2 Java 6 runs applets in the same browser in the same vm, so a second instance will get an OverlappingFileLockException Charlie Groves 2008-01-29 00:37:47 +00:00
  • 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 Charlie Groves 2008-01-28 22:25:20 +00:00
  • ef42ff053a Reenable locking, but only when -Dlock=true is passed on the command line or a lock="true" param is passed to the applet. Charlie Groves 2008-01-28 02:22:41 +00:00
  • 305446e7f3 Temporarily disable locking in getdown Mark Johnson 2008-01-26 02:35:54 +00:00
  • 03aa103cff Drive by formatting tweaks. Michael Bayne 2008-01-25 20:01:56 +00:00
  • 497de6e850 Switch to using a file lock on gettingdown.lock in the app's dir to keep multiple instances of getdown from running at the same time instead of monitoring getdown.txt's modtime. The modtime is still used to see if another getdown ran while this one waited. Charlie Groves 2008-01-24 00:59:24 +00:00
  • f168142c05 Look for javaws.jar in libs.dir in case we don't have it in java.home. Michael Bayne 2008-01-17 00:31:47 +00:00
  • 6b3ad3ae5d Using IOException to communicate a desire to abort the download is a little pesky and pushes annoying requirements on users of the Getdown download services (like Yohoho and ToyBox). Michael Bayne 2007-12-14 21:09:10 +00:00
  • abcf99251f Whoops, getdown is used as a downloading library elsewhere, so Downloader needs to stay a Thread for that usage Charlie Groves 2007-12-14 20:51:50 +00:00
  • 67c46834e6 Let's copy the child's stderr to our own in both cases. Michael Bayne 2007-12-14 20:33:45 +00:00
  • 1f37906da8 allow the silent property to specify if getdown should launch its application after it finishes installing silently Charlie Groves 2007-12-11 23:00:50 +00:00
  • e972eaad37 Use the modtime on getdown.txt as a crude locking mechanism to keep multiple instances of getdown from stepping on each others toes. Getdown now checks the modtime of getdown.txt when it starts, during its downloading, and before launching the real app. If at any of these points the modtime has changed from when it was last checked, getdown assumes that means another instance is running and bails to let the other instance do its magic. Charlie Groves 2007-12-11 22:30:40 +00:00
  • 511eaccc2e Retroweaver isn't smart enough to take care of this Java 5 method Charlie Groves 2007-12-03 19:00:07 +00:00
  • 7341ac96f3 If a param 'redirect_on_finish' is given to the applet, redirect to that URL when we've finished getting down. This allows us to have some javascript on that redirected page close the window getdown was in. I'd prefer to do this with the javascript bridge from the applet into the browser, but calling window.close() from the applet doesn't seem to do anything Charlie Groves 2007-11-20 21:36:24 +00:00
  • c62eb8a6f5 Actually replace _background when creating the interface again in case a new getdown.txt specifies new background images. If the new getdown.txt set a background but the images aren't already available as part of the existing install as indicated by there being no images in the newly created RotatingBackgrounds, just use the RotatingBackgrounds from the first time. Charlie Groves 2007-11-07 00:32:07 +00:00
  • dba663e259 Let's not choke while we're trying to recover from a security exception. Michael Bayne 2007-11-06 22:56:24 +00:00
  • e7d38b13bc Turns out keeping com.samskivert.util.** is only needed in my little mac corner of the universe, and others can build getdown just fine without it. It's no good to actually leave the names in for samskivert.util since other things that build with getdown-retro-pro in their classpath are confused to find them with their proper names but already weaved. Moral of the story is that I'm not allowed to build getdown. Charlie Groves 2007-11-01 23:55:46 +00:00
  • 5a6bb9fbed Don't rename samskivert.util.* since something about renaming StringUtil was confusing retroweaver and leading to a ClassFormatError. Upgrading to retroweaver 2 fixes that, but doing so adds backported versions of the Java 5 concurrent libraries which more than doubles the size of getdown-retro-pro.jar. This feels like the lesser evil. Charlie Groves 2007-11-01 17:45:20 +00:00
  • 3b18e77805 Some small tidying. Michael Bayne 2007-10-22 06:39:26 +00:00
  • a22d5c3707 Allow more than one background image to be specified, and if there are multiple, rotate through them as things are downloaded. Charlie Groves 2007-10-12 18:46:40 +00:00
  • b8f3333124 Only launch if we aren't in silent mode Charlie Groves 2007-10-02 20:49:54 +00:00
  • d2b3baf1d1 Add a delay mode where getdown will wait a specified number of minutes before doing any downloading. This will be useful if, say, getdown is invoked from someone else's installer and we don't want to monopolize network resources immediately. Enabled with -Ddelay=<minutes> Charlie Groves 2007-10-02 18:55:08 +00:00
  • c31e05eb3a Added a silent mode where getdown will only log its actions instead of popping up a gui. It's enabled with -Dsilent=true. Charlie Groves 2007-10-02 18:19:45 +00:00
  • fa67a45d85 Another Elias patch to work around an -Xdock:name bug. Michael Bayne 2007-08-07 23:54:25 +00:00
  • df9bdfa931 Allow the Mac dock icon path to be customized. Michael Bayne 2007-08-07 23:46:32 +00:00
  • 189cabfa5e As the comment says, allow passing -Ddirect=true to force direct invocation (direct meaning we don't fork off a new JVM). Michael Bayne 2007-08-07 23:36:06 +00:00
  • 201c5b03c7 Another patch from Elias: avoid CME when setting pass-through properties. Michael Bayne 2007-08-06 18:50:57 +00:00
  • f7e0726a5c Patch from Elias to close stdin and stdout of our launched process. If we had a Win98 machine around we could test whether closing stderr prevents the buffer fill-up deadlock that necessitates leaving the Getdown process around to read stderr on that platform, but I vaguely recall having tried that and having it not work. Michael Bayne 2007-08-04 23:57:57 +00:00
  • 92d61bca41 Japanese getdown translations. Mike Thomas 2007-07-25 20:30:16 +00:00
  • 1e4f8fdcab Added LaunchUtil.updateVersionAndRelaunch() to give external Getdown users some idea of how to actually do that. Widened. Changed logging to standard Java style. Michael Bayne 2007-04-20 00:21:38 +00:00
  • a2eeb0e769 The new signature validating code was failing to close its files properly which was causing some freakout. Michael Bayne 2007-04-13 20:50:39 +00:00
  • 3b6e48e7a9 Reinstate the "move the old file out of the way then move the new file in place" Windows-friendly rename and try that before falling back to the brute force copy (which risks failing due to a full disk and leaving us with a corrupt file rather than just an out of date one). Michael Bayne 2007-04-13 20:50:12 +00:00
  • 573314875b Widened. Michael Bayne 2007-04-13 20:47:04 +00:00
  • 424aa5cd24 Fall back to renames by copying if normal renaming fails as Windows XP decided today that renaming is no longer allowed (at least in the directory in which we're installing our games). Also nixed the old JavaScript bridge stuff which we no longer use and was flaky in the first place. Michael Bayne 2007-04-13 18:48:23 +00:00
  • f62ebb1bfa Keyword substitution. Dave Hoover 2007-04-07 00:19:43 +00:00
  • 707d36aac7 Modified Getdown to use a signature on the digest.txt file instead of a signature on the applet parameters, to verify that the signed applet version is not being misused. Michael Bayne 2007-04-05 02:10:21 +00:00
  • 19013958c6 m.init_error only takes two args, and they're supposed to be the error description and the installation help URL. This was resulting in confusing error messages when getdown fails to do its update on Vista. Mike Thomas 2007-03-28 00:08:53 +00:00