Update of /cvsroot/nice/Nice/src/nice/tools/locator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv758/src/nice/tools/locator
Modified Files:
main.nice locator.nice
Log Message:
Implementation of remote package repositories.
Index: main.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/locator/main.nice,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** main.nice 2 Jul 2004 19:31:02 -0000 1.1
--- main.nice 7 Aug 2004 14:57:33 -0000 1.2
***************
*** 32,33 ****
--- 32,35 ----
new Locator(String path, String->void warning) =
this(path: parsePath(path, warning));
+
+ new Locator(URL url) = this(path: [url]);
Index: locator.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/locator/locator.nice,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** locator.nice 2 Jul 2004 19:31:02 -0000 1.1
--- locator.nice 7 Aug 2004 14:57:33 -0000 1.2
***************
*** 25,30 ****
let url = new URL(base, resource);
let connection = url.openConnection();
! connection.connect();
! return connection;
}
catch(java.io.IOException e) {}
--- 25,33 ----
let url = new URL(base, resource);
let connection = url.openConnection();
! if (connection != null)
! {
! connection.connect();
! return connection;
! }
}
catch(java.io.IOException e) {}
|