Changeset 6570


Ignore:
Timestamp:
09/23/15 07:40:32 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-importer/src/test/java/eu/clarin/cmdi/vlo/importer/ImporterTestcase.java

    r6569 r6570  
    6262       
    6363        URL vocabulary = this.getClass().getClassLoader().getResource(VOC_MAPS_PATH + MetadataImporter.config.getLicenseAvailabilityMapUrl());
    64         System.out.println(vocabulary.getPath());
    65         System.out.println(vocabulary.getFile());
     64        File f = new File(vocabulary.toURI());
     65       
     66        if(f.exists()){
     67                System.out.println(f.getAbsolutePath());
     68                System.out.println(f.getPath());
     69        }else{
     70                throw new RuntimeException("File " + VOC_MAPS_PATH + MetadataImporter.config.getLicenseAvailabilityMapUrl() + " doesnt exist");
     71        }
    6672     
    6773    }
Note: See TracChangeset for help on using the changeset viewer.