forked from I2P_Developers/i2p.i2p
fix installer tools compile
This commit is contained in:
@@ -24,6 +24,7 @@ import java.util.Properties;
|
|||||||
import gnu.getopt.Getopt;
|
import gnu.getopt.Getopt;
|
||||||
|
|
||||||
import net.i2p.I2PAppContext;
|
import net.i2p.I2PAppContext;
|
||||||
|
import net.i2p.data.DataFormatException;
|
||||||
import net.i2p.data.Hash;
|
import net.i2p.data.Hash;
|
||||||
import net.i2p.data.router.RouterAddress;
|
import net.i2p.data.router.RouterAddress;
|
||||||
import net.i2p.data.router.RouterInfo;
|
import net.i2p.data.router.RouterInfo;
|
||||||
@@ -109,7 +110,9 @@ public class BundleRouterInfos {
|
|||||||
RouterInfo ri = new RouterInfo();
|
RouterInfo ri = new RouterInfo();
|
||||||
ri.readBytes(fis, true); // true = verify sig on read
|
ri.readBytes(fis, true); // true = verify sig on read
|
||||||
me = ri.getIdentity().getHash();
|
me = ri.getIdentity().getHash();
|
||||||
} catch (RuntimeException e) {
|
} catch (IOException e) {
|
||||||
|
//System.out.println("Can't determine our identity");
|
||||||
|
} catch (DataFormatException e) {
|
||||||
//System.out.println("Can't determine our identity");
|
//System.out.println("Can't determine our identity");
|
||||||
} finally {
|
} finally {
|
||||||
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
||||||
@@ -209,7 +212,9 @@ public class BundleRouterInfos {
|
|||||||
copied++;
|
copied++;
|
||||||
else
|
else
|
||||||
System.out.println("Failed copy of " + file + " to " + toDir);
|
System.out.println("Failed copy of " + file + " to " + toDir);
|
||||||
} catch (RuntimeException e) {
|
} catch (IOException e) {
|
||||||
|
System.out.println("Skipping bad " + file);
|
||||||
|
} catch (DataFormatException e) {
|
||||||
System.out.println("Skipping bad " + file);
|
System.out.println("Skipping bad " + file);
|
||||||
} finally {
|
} finally {
|
||||||
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
if (fis != null) try { fis.close(); } catch (IOException ioe) {}
|
||||||
|
Reference in New Issue
Block a user