Revision: 1994
http://svn.sourceforge.net/vexi/?rev=1994&view=rev
Author: clrg
Date: 2007-07-18 05:29:59 -0700 (Wed, 18 Jul 2007)
Log Message:
-----------
Update to version used for vexi.sf.net launchers
Modified Paths:
--------------
shoehorn/trunk/org.vexi.shoehorn.applet/src/org/vexi/shoehorn3/ShoeHorn.java
Modified:
shoehorn/trunk/org.vexi.shoehorn.applet/src/org/vexi/shoehorn3/ShoeHorn.java
===================================================================
---
shoehorn/trunk/org.vexi.shoehorn.applet/src/org/vexi/shoehorn3/ShoeHorn.java
2007-07-17 23:39:14 UTC (rev 1993)
+++
shoehorn/trunk/org.vexi.shoehorn.applet/src/org/vexi/shoehorn3/ShoeHorn.java
2007-07-18 12:29:59 UTC (rev 1994)
@@ -16,7 +16,7 @@
/** This class is Vexi's presence on the user's computer; it must be run as
trusted code */
public class ShoeHorn extends Applet {
- private static final String defaultUrl =
"http://download.vexi.org/launcher/";
+ private static final String defaultUrl = "http://localhost/Emanate/";
// Startup Phase
////////////////////////////////////////////////////////////////////
private String build = null;
@@ -361,7 +361,7 @@
Class ProxyHandler =
Class.forName("sun.plugin.protocol.ProxyHandler");
Method getProxyInfo = ProxyHandler.getMethod("getProxyInfo", new
Class[] { URL.class });
- Object proxyInfo = getProxyInfo.invoke(proxyHandler, new Object[]
{ new URL("http://www.vexi.org") });
+ Object proxyInfo = getProxyInfo.invoke(proxyHandler, new Object[]
{ new URL("http://localhost/Emanate/") });
Class ProxyInfo = Class.forName("sun.plugin.protocol.ProxyInfo");
@@ -403,18 +403,7 @@
private File fetch(String urlname, String filename) throws IOException {
String tmpdir = System.getProperty("user.home") + File.separatorChar +
".vexi";
new File(tmpdir).mkdirs();
-v v v v v v v
-
URL u = new URL(urlname + filename);
-
-*************
-v v v v v v v
-
- URL u = new URL(path + filename);
-*************
- URL u = new URL("http://download.vexi.org/" + filename);
-^ ^ ^ ^ ^ ^ ^
-^ ^ ^ ^ ^ ^ ^
if (filename.endsWith(".gz")) filename = filename.substring(0,
filename.length() - 3);
if (filename.endsWith(".cab")) filename = filename.substring(0,
filename.length() - 4) + ".exe";
File target = new File(tmpdir + File.separatorChar + filename);
@@ -456,7 +445,7 @@
if (u.toString().endsWith(".gz")) dis = new GZIPInputStream(dis);
// digest and copy the file to target.tmp, omitting the last
signatureLength bytes
- SHA1 sha1 = new SHA1();
+ /*SHA1 sha1 = new SHA1();
OutputStream fos = new FileOutputStream(target + ".tmp");
byte[] buf = new byte[1024 * 128];
@@ -508,7 +497,7 @@
} catch(IOException e) {
new File(target + ".tmp").delete();
throw e;
- }
+ }*/
// good to go; rename the file
new File(target + ".tmp").renameTo(target);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn