Added file path NIHVIVO-254 : Parser to convert PromptDiff output to Java change objects
This commit is contained in:
parent
66a7042506
commit
d9e9088664
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ public class OntologyChangeParser {
|
|||
*/
|
||||
|
||||
@SuppressWarnings({ "unchecked", "null", "static-access" })
|
||||
public static ArrayList<AtomicOntologyChange> parseFile() throws IOException{
|
||||
public static ArrayList<AtomicOntologyChange> parseFile(String diffPath) throws IOException{
|
||||
|
||||
AtomicOntologyChange changeObj;
|
||||
ArrayList<AtomicOntologyChange> changeObjects = new ArrayList<AtomicOntologyChange>();
|
||||
|
@ -40,7 +40,7 @@ public class OntologyChangeParser {
|
|||
String sourceURI = null;
|
||||
String destinationURI = null;
|
||||
StringTokenizer stArr = null;
|
||||
FileInputStream in = new FileInputStream(new File("/WEB-INF/ontologies/update/diff.tab.txt"));
|
||||
FileInputStream in = new FileInputStream(new File(diffPath));
|
||||
CSVReader readFile = new SimpleReader();
|
||||
|
||||
List<String[]> rows = readFile.parse(in);
|
||||
|
|
Loading…
Add table
Reference in a new issue