Skip to content

Commit

Permalink
overwrite existent files
Browse files Browse the repository at this point in the history
  • Loading branch information
nreimers committed Oct 30, 2015
1 parent 8f5d831 commit 17aaa44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void process(JCas aJCas) throws AnalysisEngineProcessException{

PrintWriter out = null;
try {

out = new PrintWriter(new OutputStreamWriter(getOutputStream(aJCas, filenameSuffix), encoding));
convert(aJCas, out);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public static void main(String[] args) {
PrintStream ps;
try {
ps = new PrintStream("error.log");
System.setErr(ps);
// System.setErr(ps);
} catch (FileNotFoundException e) {
System.out.println("Errors cannot be redirected");
}
Expand Down Expand Up @@ -544,7 +544,8 @@ public static void main(String[] args) {

AnalysisEngineDescription writer = createEngineDescription(
DARIAHWriter.class,
DARIAHWriter.PARAM_TARGET_LOCATION, optOutput);
DARIAHWriter.PARAM_TARGET_LOCATION, optOutput,
DARIAHWriter.PARAM_OVERWRITE, true);

AnalysisEngineDescription annWriter = createEngineDescription(
AnnotationWriter.class
Expand Down
72 changes: 0 additions & 72 deletions code/src/test/resources/test.txt.csv

This file was deleted.

0 comments on commit 17aaa44

Please sign in to comment.