JavaScript: store YAML locations in yaml_locations table instead of hasLocation.

This commit is contained in:
Max Schaefer
2019-07-25 14:46:55 +01:00
parent 37cb4e4023
commit 9a00f4d0f0
4 changed files with 11 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public class Main {
* A version identifier that should be updated every time the extractor changes in such a way that
* it may produce different tuples for the same file under the same {@link ExtractorConfig}.
*/
public static final String EXTRACTOR_VERSION = "2019-07-24";
public static final String EXTRACTOR_VERSION = "2019-07-25";
public static final Pattern NEWLINE = Pattern.compile("\n");

View File

@@ -99,6 +99,7 @@ public class YAMLExtractor implements IExtractor {
trapWriter = textualExtractor.getTrapwriter();
Label fileLabel = locationManager.getFileLabel();
locationManager.setHasLocationTable("yaml_locations");
try {
parser = new ParserImpl(new StreamReader(textualExtractor.getSource()));
resolver = new Resolver();