Commit Graph

517 Commits

Author SHA1 Message Date
Michael Bayne 90edcdf571 Some tidying. 2011-04-07 21:07:23 +00:00
Michael Bayne 14bb4f0f9b I later realized we don't need quotes here, since we pass arguments as an array
to Runtime.exec.
2011-04-07 21:06:59 +00:00
Michael Bayne 6c3abf3597 Added sane systems for augmenting jvmargs and appargs from getdown.txt instead
of inconsistent-with-one-another-and-with-getdown.txt-and-limitation-ridden
'properties' and 'app_properties' mechanisms from ancient history.

Unfortunately, Sun in their infinite wisdom decided that being able to
enumerate applet parameters was "not doing it right" and provided no mechanism
for doing so. So we have to use annoying increasing int suffixes.

Use like so:

<object ..>
  <param name="jvmarg0" value="-Xmx256M"/>
  <param name="jvmarg1" value="-Danswer=42"/>
  <param name="jvmarg2" value="-Dtrix=for kids"/>
  <param name="jvmarg3" value="-Dfoodir=%APPDIR%"/>
  <param name="apparg0" value="--username"/>
  <param name="apparg1" value="elvis"/>
</object>
2011-04-07 20:57:13 +00:00
Michael Bayne 86657244e1 Truth in commenting, studliness in variable naming (since all the neighbors are
studly).
2011-02-11 23:06:02 +00:00
Michael Bayne 3f94853bb2 Allow a blank app_id so that when calling Getdown via:
java -jar getdown.jar app_dir [app_id] [app_arg ...]

we could conceivably supply '""' for app_id and pass arguments to the default
application.
2011-02-11 22:59:27 +00:00
Michael Bayne 1eaa058fa8 Some interface deconcretization, and changed config parsing so that we only
complain if you actually provide an unparseable rect or color. If you don't
provide one at all, we'll use the default.

I want people to be able to configure Getdown with just:

ui.name = My Project

and get a no-frills, but usable interface that displays download and
installation progress. Previously, this resulted in a bunch of warnings when
they tried to generate their digest.txt because they failed to supply cryptic
things like "ui.progress = 17, 321, 458, 22". I'd rather that be optional.

I may add some sort of "spurious config" warning, so that if you provide
"ui.progres = 17, 321, 458, 22" and you're wondering why things aren't working,
you don't spend hours pulling your hair out.
2011-02-11 18:40:26 +00:00
Michael Bayne a087c70e76 Build a getdown-tools.jar for use by non-Maven users to do things like generate
digests and jardiffs and signed applet parameters, etc.
2011-02-11 18:21:55 +00:00
Michael Bayne b3e650f939 Use the shipped samskivert-1.2, fix proguard jar creation. 2011-02-11 18:07:58 +00:00
Michael Bayne 2f29c77cdf Report the underlying error message when failing due to paths that jar: URLs
can't handle.
2011-01-31 18:16:47 +00:00
Charlie Groves f60d063711 Deploy a sources jar along with the code jar for IDE-happiness 2011-01-20 00:47:10 +00:00
Charlie Groves 1d469e7d1d Use m2eclipse for Eclipse configuration 2011-01-11 23:49:11 +00:00
Andrzej Kapolka 86f580c175 To be safe, if we had a version file before and the latest version is
newer, overwrite with the newer version.
2011-01-06 21:09:59 +00:00
Andrzej Kapolka 9577c2127c To be safe, let's be sure that the "latest" version isn't less than the
one in version.txt.
2011-01-05 00:15:27 +00:00
Andrzej Kapolka c7e7da830a Allow specifying a "latest" attribute containing the URL of the latest
getdown.txt (from which we retrieve the most recent version).
2011-01-05 00:09:52 +00:00
Michael Bayne 4c6f1f95b8 Use the renamed method. 2010-12-02 23:07:35 +00:00
Dave Hoover 33e0c7a975 Bring back multi-icon goodness.
Added a util in samskivert to do the song & dance with reflection to
find it for us.
2010-12-02 01:24:15 +00:00
Dave Hoover 04398ed747 Update to the samskivert-1.2 SNAPSHOT to get SwingUtil.setWindowIcons() 2010-12-02 01:24:08 +00:00
Dave Hoover f73333d951 Damn, setIconImages is new in 1.6.
When I'm feeling more up to it, I'll potentially rejigger this to
allow its use if it's available, but for now just simplify it so
folks can set a single icon.
2010-11-30 01:06:34 +00:00
Dave Hoover dbc08da57c Speeling 2010-11-30 01:06:28 +00:00
Dave Hoover da3d23a973 Whitespace 2010-11-30 01:06:20 +00:00
Dave Hoover 11b2317d2a Don't worry about java 1.4 any more. 2010-11-30 01:06:13 +00:00
Dave Hoover b484d0aad3 Let folks set the icon for the getdown window.
Not to imply that the default mug o' coffee isn't the pinnacle of style, but...
2010-11-29 23:00:10 +00:00
Dave Hoover 182809ec58 Whitespace 2010-11-29 19:55:21 +00:00
Dave Hoover 71184ca84e Have eclipse get that from M2_REPO 2010-11-29 19:55:14 +00:00
Dave Hoover 6862c99db5 Update getdown's source header to be like the rest of the OOO ones. 2010-11-29 19:54:53 +00:00
Michael Bayne a508c9e07a Go back to the next snapshot revision. 2010-11-19 03:59:00 +00:00
Michael Bayne 88a950997c Prepare a stable 1.1 release for the OOO repo. 2010-11-19 03:58:17 +00:00
Michael Bayne 6f5cc3a7dc [maven-release-plugin] prepare for next development iteration 2010-11-19 01:11:49 +00:00
Michael Bayne 51fd4c08f5 [maven-release-plugin] prepare release getdown-1.1 2010-11-19 01:11:37 +00:00
Michael Bayne dfc1d6ad4d Go ahead and make maven-deploy publish locally unless otherwise directed. 2010-11-18 23:07:08 +00:00
Michael Bayne d6482dedc5 Maven Ant tasks do provide properties for dependencies. Yay! 2010-11-18 22:55:44 +00:00
Michael Bayne 932acb52d4 Need to copy src/main/resources into dist/classes. 2010-11-18 22:22:04 +00:00
Michael Bayne d57052b589 Eventually I'll have all of these converted over. 2010-11-18 17:48:13 +00:00
Michael Bayne e7bf99ed0d It's actually the runtime jar not tools, so let's name it appropriately. 2010-11-18 17:46:55 +00:00
Michael Bayne 771acc96de We don't need to keep these in the Proguarded version, tools can use the
non-Proguarded version with dependencies from Maven.
2010-11-18 17:42:39 +00:00
Michael Bayne be491d3bfb Added maven-deploy target and separate pom.xml for deploying the
getdown-pro.jar.
2010-11-18 17:41:26 +00:00
Michael Bayne 5918b67fb1 Revamped primary build to use Maven Ant tasks. Eliminated Ivy-based build,
which was used by Maven, now Maven calls into the primary build to generate its
Proguarded jar file. Retired the Retroweaved jar file after a tremendous amount
of fucking around with Retroweaver. I think it's safe to say that the number of
people showing up with a 1.4 JDK operational in their browser is epsilon close
to zero.
2010-11-18 17:38:43 +00:00
Michael Bayne 16029977d4 Don't obfuscate since it doesn't shrink things by much anyway and it causes
problems for things like ToyBox which wants to reuse some Getdown internals.
2010-11-18 16:41:18 +00:00
Michael Bayne 6f1a6ce78d Sorted out a way to get Maven to reference a local jar file without rendering
the pom file hosed for transitive dependencies.
2010-11-18 15:54:42 +00:00
Michael Bayne d999592401 Find our depends in M2_REPO. 2010-11-16 23:50:06 +00:00
Michael Bayne d16fa8aebd Only require signing when doing a real release. 2010-10-14 22:45:12 +00:00
Ray Greenwell a5499d8cb8 Patch from Andrzej:
Getdown is currently failing to create patch files because JarDiff is closing the outputstream. The attached patch comments it out, which seems to work.
2010-10-02 03:36:19 +00:00
Michael Bayne b4dae3be33 If we get valid values once we start downloading, use those to provide
moderately more sane progress indication.

It's still non-ideal, because, for example, we'll start out assuming everything
is length 1. So we'd have a queue like (1, 1, 1, 1). Then we start downloading
the first resource and see that we actually have (1500000, 1, 1, 1), so we
climb up to 99% downloading that first resource, and then we find out that we
have (1500000, 450000, 1, 1) and we pop back down to 70% or so, and so on as we
discover in turn that the web server lied to us about each file.

The alternative is to just sit at 25% for ages, then sit at 50% for ages, then
75%, etc. Maybe that's better... I guess I just like to see some sort of smooth
upward progress.

This is only a problem for me since I'm hosting a Getdown client on Github
which lies about Content-size in a HEAD request. So OOO projects will continue
to give accurate progress reports.
2010-09-23 00:15:20 +00:00
Michael Bayne 9d6f3e32ee Track the reported size of each resource and its download progress
individually. Cap the actual download size at the reported size to ensure that
we don't end up borking our progress calculations if a web server returns a
"clever" value for content-size like 1 or 0, but then sends back real data.
Also sanitize the returned content-size in case the web server says something
awesome like -42. No one can be trusted on the Interwebs, least of all web
servers.
2010-09-22 21:36:01 +00:00
Michael Bayne 241c68ab72 Put our resources in src/main/resources. 2010-09-22 17:29:31 +00:00
Michael Bayne f5a70f3116 Let's not fail if a tautology. 2010-09-22 17:17:47 +00:00
Michael Bayne 4cc18b9301 Just filter out the ant task, that's all we can't handle. 2010-09-21 16:31:44 +00:00
Michael Bayne 15619e4dd1 Extracted the digester into a command-line callable task. 2010-09-21 06:52:09 +00:00
Michael Bayne 1bb6dec1a2 Import and whitespace pruning. 2010-09-21 06:47:26 +00:00
Michael Bayne 44754f6d43 Let's call our auxiliary Ant file build-proguard since that is more indicative
of its purpose in life.
2010-09-21 06:41:18 +00:00