Commit Graph

259 Commits

Author SHA1 Message Date
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
Mark Johnson 305446e7f3 Temporarily disable locking in getdown 2008-01-26 02:35:54 +00:00
Michael Bayne 03aa103cff Drive by formatting tweaks. 2008-01-25 20:01:56 +00:00
Charlie Groves 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. 2008-01-24 00:59:24 +00:00
Michael Bayne f168142c05 Look for javaws.jar in libs.dir in case we don't have it in java.home. 2008-01-17 00:31:47 +00:00
Michael Bayne 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).

Instead we'll allow Downloader.download() to return false to indicate that the
download was aborted by an observer, and the observers will simply return false
to indicate that they wish the download to be aborted.

While I was in there, I moved the Downloader and its concrete implementations
into a getdown.net package because it annoyed me that they were in
getdown.launcher.
2007-12-14 21:09:10 +00:00
Charlie Groves abcf99251f Whoops, getdown is used as a downloading library elsewhere, so Downloader needs to stay a Thread for that usage 2007-12-14 20:51:50 +00:00
Michael Bayne 67c46834e6 Let's copy the child's stderr to our own in both cases. 2007-12-14 20:33:45 +00:00
Charlie Groves 1f37906da8 allow the silent property to specify if getdown should launch its application after it finishes installing silently 2007-12-11 23:00:50 +00:00
Charlie Groves 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.

Mainly this is for a delayed, silent installer that wants to launch after its
delay, but not if getdown has been run manually after it was launched. Also, if
someone manages to get a little click happy on their installer, this will keep
multiple instances from fighting for the bandwidth to download the same file
simultaneously.
2007-12-11 22:30:40 +00:00
Charlie Groves 511eaccc2e Retroweaver isn't smart enough to take care of this Java 5 method 2007-12-03 19:00:07 +00:00
Charlie Groves 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 2007-11-20 21:36:24 +00:00
Charlie Groves 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. 2007-11-07 00:32:07 +00:00
Michael Bayne dba663e259 Let's not choke while we're trying to recover from a security exception. 2007-11-06 22:56:24 +00:00
Charlie Groves 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. 2007-11-01 23:55:46 +00:00
Charlie Groves 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. 2007-11-01 17:45:20 +00:00
Michael Bayne 3b18e77805 Some small tidying. 2007-10-22 06:39:26 +00:00
Charlie Groves a22d5c3707 Allow more than one background image to be specified, and if there are
multiple, rotate through them as things are downloaded.
2007-10-12 18:46:40 +00:00
Charlie Groves b8f3333124 Only launch if we aren't in silent mode 2007-10-02 20:49:54 +00:00
Charlie Groves 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> 2007-10-02 18:55:08 +00:00
Charlie Groves c31e05eb3a Added a silent mode where getdown will only log its actions instead of popping up a gui. It's enabled with -Dsilent=true. 2007-10-02 18:19:45 +00:00
Michael Bayne fa67a45d85 Another Elias patch to work around an -Xdock:name bug. 2007-08-07 23:54:25 +00:00
Michael Bayne df9bdfa931 Allow the Mac dock icon path to be customized. 2007-08-07 23:46:32 +00:00
Michael Bayne 189cabfa5e As the comment says, allow passing -Ddirect=true to force direct invocation
(direct meaning we don't fork off a new JVM).
2007-08-07 23:36:06 +00:00
Michael Bayne 201c5b03c7 Another patch from Elias: avoid CME when setting pass-through properties. 2007-08-06 18:50:57 +00:00
Michael Bayne 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.
2007-08-04 23:57:57 +00:00