Skip to content

Commit

Permalink
Merge pull request #62 from infolis/pass-on-tags
Browse files Browse the repository at this point in the history
TextExtractor: Add Execution and source file tags
  • Loading branch information
kba committed Nov 21, 2015
2 parents 3710664 + 89d42bf commit 3b77281
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/io/github/infolis/algorithm/TextExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public InfolisFile extract(InfolisFile inFile) throws IOException {
outFile.setFileName(outFileName);
outFile.setMediaType("text/plain");
//TODO either set or list for all tags
outFile.setTags(new HashSet<>(getExecution().getTags()));
for (String tag : getExecution().getTags())
outFile.getTags().add(tag);
for (String tag : inFile.getTags())
outFile.getTags().add(tag);
if (getExecution().getOverwriteTextfiles() == false) {
File _outFile = new File(outFileName);
if (_outFile.exists()) {
Expand Down

0 comments on commit 3b77281

Please sign in to comment.