Changeset 3415 in osm for applications/editors


Ignore:
Timestamp:
2007-06-29T18:43:12+02:00 (17 years ago)
Author:
christofd
Message:

add handling of urls without trailing slash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pluginmanager/src/at/dallermassl/josm/plugin/pluginmanager/PluginResource.java

    r3335 r3415  
    7878    public void install() {
    7979       File targetFile = new File(target);
     80       if(targetFile.isDirectory()
     81          || targetFile.getAbsolutePath().endsWith("/")
     82          || targetFile.getAbsolutePath().endsWith("\\")) {
     83           targetFile = new File(targetFile, resourceUrl.getFile());
     84       }
    8085       File parentDir = targetFile.getParentFile();
    8186       if(!parentDir.exists() && !parentDir.mkdirs()) {
Note: See TracChangeset for help on using the changeset viewer.