Ignore:
Timestamp:
2017-01-31T22:55:17+13:00 (7 years ago)
Author:
davidb
Message:

Switch to using URI not string

Location:
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/pom.xml

    r31310 r31377  
    1818      <version>2.0.1</version>
    1919      <scope>provided</scope>
     20    </dependency>
     21
     22    <dependency>
     23      <groupId>org.scala-lang</groupId>
     24      <artifactId>scala-library</artifactId>
     25      <version>2.12.1</version>
    2026    </dependency>
    2127
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/UniversalPOSLangMap.java

    r31375 r31377  
    33import java.io.File;
    44import java.io.IOException;
     5import java.net.URI;
    56import java.nio.file.Files;
    67import java.nio.file.Path;
     
    2324        List<Path> langmap_paths = null;
    2425       
    25         try (Stream<Path> stream_paths = Files.walk(Paths.get(langmap_directory))) {
     26        URI langmap_directory_uri = null;
     27       
     28        try {
     29            langmap_directory_uri = new URI(langmap_directory);
     30        }
     31        catch (Exception e) {
     32            e.printStackTrace();
     33        }
     34        try (Stream<Path> stream_paths = Files.walk(Paths.get(langmap_directory_uri))) {
    2635            langmap_paths = stream_paths
    2736                    .filter(Files::isRegularFile)
Note: See TracChangeset for help on using the changeset viewer.