Ignore:
Timestamp:
2016-01-24T16:25:58+01:00 (4 years ago)
Author:
Don-vip
Message:

fix unit test (forgot data file + headless mode)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r9141 r9616  
    12051205    /**
    12061206     * Determines if the specified file is a valid and accessible JAR file.
    1207      * @param jar The fil to check
     1207     * @param jar The file to check
    12081208     * @return true if file can be opened as a JAR file.
    12091209     * @since 5723
     
    12141214                new JarFile(jar).close();
    12151215            } catch (Exception e) {
     1216                Main.warn(e);
    12161217                return false;
    12171218            }
    12181219            return true;
     1220        } else if (jar != null) {
     1221            Main.warn("Invalid jar file ''"+jar+"'' (exists: "+jar.exists()+", canRead: "+jar.canRead()+")");
    12191222        }
    12201223        return false;
Note: See TracChangeset for help on using the changeset viewer.