Ignore:
Timestamp:
2014-06-14T14:05:38+02:00 (10 years ago)
Author:
bastik
Message:

update to [josm7248]

Location:
applications/editors/josm/plugins/mirrored_download
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mirrored_download/build.xml

    r30416 r30495  
    55    <property name="commit.message" value=""/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="7001"/>
     7    <property name="plugin.main.version" value="7248"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java

    r30436 r30495  
    2525
    2626import org.openstreetmap.josm.Main;
    27 import org.openstreetmap.josm.io.MirroredInputStream;
     27import org.openstreetmap.josm.io.CachedFile;
    2828
    2929public class UrlSelectionDialog
     
    106106    Collection<String> urls = new ArrayList<String>();
    107107    try (
    108       InputStream in = new MirroredInputStream(src, 24*60*60);
     108      InputStream in = new CachedFile(src).setMaxAge(24*60*60).getInputStream();
    109109      BufferedReader reader = new BufferedReader(new InputStreamReader(in))
    110110    ) {
Note: See TracChangeset for help on using the changeset viewer.