File extensions are confusing when downloading the signed release

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

File extensions are confusing when downloading the signed release

Wade Walker
Administrator
Hi guys,

I noticed when I download https://jogamp.org/deployment/webstart/gluegen-rt.jar, the file actually downloads as gluegen-rt.gz. This seems a bit odd -- is it meant to be this way? I figured it out quickly enough, but it seems like it might be off-putting to new users.

Also, it seems strange to have half the files jarred, and half of them gzipped, and to have them all separate. Couldn't we just make one zip for each platform like we have for autobuilds?

The reason I noticed is that I've been writing a new wiki page telling a user how to quickly download JOGL and set up an Eclipse project that depends on it (at https://jogamp.org/wiki/index.php/Setting_up_an_Eclipse_project_that_uses_JOGL), and the section on how to download was painful to write

Reply | Threaded
Open this post in threaded view
|

Re: File extensions are confusing when downloading the signed release

Sven Gothel
Administrator
On Saturday, January 15, 2011 23:38:46 Wade Walker [via jogamp] wrote:
>
> Hi guys,
>
> I noticed when I download
> https://jogamp.org/deployment/webstart/gluegen-rt.jar, the file actually
> downloads as gluegen-rt.gz. This seems a bit odd -- is it meant to be this
> way? I figured it out quickly enough, but it seems like it might be
> off-putting to new users.

This is due to our .htaccess in the deployment folder:

+++
AddType application/x-java-archive .jar
AddType application/x-java-archive-diff .jardiff
AddType application/x-java-jnlp-file .jnlp

<Files *.jar.pack.gz>
  AddEncoding pack200-gzip .jar
  RemoveEncoding .gz
</Files>

RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} pack200-gzip
RewriteCond %{REQUEST_FILENAME}.pack.gz -f
RewriteRule ^(.*\.jar)$ $1.pack.gz [NC,L]

RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*\.jar)$ $1.gz [NC,L]
+++

1) pack200-gzip
2) gz
3) jar

>
> Also, it seems strange to have half the files jarred, and half of them
> gzipped, and to have them all separate. Couldn't we just make one zip for
> each platform like we have for autobuilds?
we do have this, of course - look in 'archive'
  http://jogamp.org/deployment/webstart/archive/

Hope this helps.

~Sven