Changeset 6538


Ignore:
Timestamp:
09/22/15 09:35:50 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-vocabularies/src/main/java/eu/clarin/cmdi/vlo/transformers/CSVTransformer.java

    r6534 r6538  
    9898                InputStream input;
    9999                try{
    100                         input = new FileInputStream(Constants.CSV_PATH + map + ".csv");
    101                 }catch(FileNotFoundException e){
     100                        input = CSVTransformer.class.getResourceAsStream("/" + Constants.CSV_PATH + map + ".csv");
     101                        //input = new FileInputStream(Constants.CSV_PATH + map + ".csv");
     102                }catch(NullPointerException e){
    102103                        _logger.error("Could not find the file " + Constants.CSV_PATH + map + ".csv", e);
    103104                        _logger.info("trying with /" + Constants.CSV_PATH + map + ".csv");
Note: See TracChangeset for help on using the changeset viewer.