You are not logged in.
I'm trying to make a package for the new Ensmer milestone. The new version supports having settings in the home directory, so I thought it was time for a real package...
Only problem is java.net seems to have changed their download feature so it isn't possible to download from a direct location. You have to go to a dumb URL like this:
https://ensmer.dev.java.net/files/docum … dsrc%2ejar
which downloads a file called:
Ensmer-0.1+milestone-1-src.jar
Is there any way to support this kind of source in a PKGBUILD? This is remeniscent of sourceforge, except its possible to link directly to a mirror on sourceforge...
Thanks,
Dusty
Offline
try
https://ensmer.dev.java.net/files/docum … _10746.dat
It works in a browser. However, it looks like wget doesn't support https. It gives a Unsupported scheme error.
Offline
how did you find that filename? I'll want to know the method so I can find it when I release milestone 2, etc.
I don't know if it would work though. wget does support https; I've used makepkg (which uses wget) to get java.net files before. Maybe the server is interfering to throw the error...
I'll experiment with it a bit more when I have time. Thanks for the hint.
Dusty
Offline
how did you find that filename?
It's just the first part of the URL in your first post (before the "?").
Offline
yeah, it looks like the params after the "?" are for logging or something server-side
Offline
:oops:
I feel simple.
Thanks for the tips. I'll try my hand at making a PKGBUILD with it; we'll see what happens. Probably its using a servlet to count the number of downloads or something; its still possible it won't be able to download...
Dusty
Offline
You can also get more info about downloading process running wget with -S option like this:
wget -S https://www.dev.java.net/files/documents/2312/10746/file_10746.dat?filename=Ensmer%2d%30%2e%31%2bmilestone%2d%31%2dsrc%2ejar
--01:55:44-- https://www.dev.java.net/files/documents/2312/10746/file_10746.dat?filename=Ensmer-0.1%2bmilestone-1-src.jar
=> `file_10746.dat?filename=Ensmer-0.1+milestone-1-src.jar.8'
Resolving www.dev.java.net... 64.125.133.206
Connecting to www.dev.java.net[64.125.133.206]:443... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 302 Found
2 Date: Fri, 28 Jan 2005 00:56:49 GMT
3 Server: Apache/2.0.47 (Unix) mod_auth_svn/0.1 SVN/0.23.0 mod_jk/1.2.0 mod_auth_mda/2.0 DAV/2 mod_ssl/2.0.47 OpenSSL/0.9.7
4 Set-Cookie: MDABack=https%3a%2f%2fwww.dev.java.net%2ffiles%2fdocuments%2f2312%2f10746%2ffile_10746.dat%3ffilename%3dEnsmer-0.1%252bmilestone-1-src.jar%3frealm%3d10; path=/; domain=.dev.java.net
5 Location: https://ensmer.dev.java.net/servlets/ProjectDocumentDownload?documentID=10746
6 Content-Length: 437
7 Keep-Alive: timeout=15, max=100
8 Connection: Keep-Alive
9 Content-Type: text/html; charset=iso-8859-1
Location: https://ensmer.dev.java.net/servlets/ProjectDocumentDownload?documentID=10746 [following]
--01:55:45-- https://ensmer.dev.java.net/servlets/ProjectDocumentDownload?documentID=10746
=> `ProjectDocumentDownload?documentID=10746'
Resolving ensmer.dev.java.net... 64.125.133.206
Connecting to ensmer.dev.java.net[64.125.133.206]:443... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 302 Moved Temporarily
2 Date: Fri, 28 Jan 2005 00:56:50 GMT
3 Server: Apache/2.0.47 (Unix) mod_auth_svn/0.1 SVN/0.23.0 mod_jk/1.2.0 mod_auth_mda/2.0 DAV/2 mod_ssl/2.0.47 OpenSSL/0.9.7
4 HelmLoginID: guest
5 Location: https://www.dev.java.net/files/documents/2312/10746/file_10746.dat?filename=Ensmer%2d%30%2e%31%2bmilestone%2d%31%2dsrc%2ejar
6 Set-Cookie: JSESSIONID=B0062D82FBEF43C36652C9A4BF97E623;Domain=.dev.java.net;Path=/;Secure
7 Set-Cookie: MDAAuth=b230c19dc4e2addb6bd5724feb24962441f98dd2admin@dev.java.net!100000[cut like a zillion of 0s from here]000000!;Domain=.dev.java.net;Expires=Sat, 29-Jan-2005 00:56:50 GMT;Path=/;Secure
8 Content-Length: 0
9 Keep-Alive: timeout=15, max=100
10 Connection: Keep-Alive
11 Content-Type: text/html; charset=UTF-8
Location: https://www.dev.java.net/files/documents/2312/10746/file_10746.dat?filename=Ensmer%2d%30%2e%31%2bmilestone%2d%31%2dsrc%2ejar [following]
--01:55:47-- https://www.dev.java.net/files/documents/2312/10746/file_10746.dat?filename=Ensmer-0.1%2bmilestone-1-src.jar
=> `file_10746.dat?filename=Ensmer-0.1+milestone-1-src.jar.8'
Connecting to www.dev.java.net[64.125.133.206]:443... connected.
HTTP request sent, awaiting response...
1 HTTP/1.1 200 OK
2 Date: Fri, 28 Jan 2005 00:56:52 GMT
3 Server: Apache/2.0.47 (Unix) mod_auth_svn/0.1 SVN/0.23.0 mod_jk/1.2.0 mod_auth_mda/2.0 DAV/2 mod_ssl/2.0.47 OpenSSL/0.9.7
4 Last-Modified: Thu, 20 Jan 2005 18:35:04 GMT
5 ETag: "11d6a8d-155fe2-fe102600"
6 Accept-Ranges: bytes
7 Content-Length: 1400802
8 Content-type: application/octet-stream
9 Content-disposition: attachment; filename=Ensmer-0.1+milestone-1-src.jar
10 Keep-Alive: timeout=15, max=100
11 Connection: Keep-Alive
Which shows that phisical name of the file is file_10746.dat which is normally converted to Ensmer-0.1+milestone-1-src.jar by the web browser (9 Content-disposition: attachment; filename=Ensmer-0.1+milestone-1-src.jar) but not wget.
Offline