-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the report object factory to immediately write to a zip file …
…instead of creating single files.
- Loading branch information
1 parent
1c9a906
commit c00d460
Showing
13 changed files
with
251 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
core/src/main/java/de/jplag/reporting/reportobject/writer/DummyResultWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package de.jplag.reporting.reportobject.writer; | ||
|
||
import java.io.File; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* Dummy writer, that does nothing | ||
*/ | ||
public class DummyResultWriter implements JPlagResultWriter { | ||
private static final Logger logger = LoggerFactory.getLogger(DummyResultWriter.class); | ||
private static final String MESSAGE_JSON = "DummyWriter writes object {} to path {} as JSON."; | ||
private static final String MESSAGE_FILE = "DummyWriter writes file {} to path {}."; | ||
private static final String MESSAGE_STRING = "DummyWriter writes String ({}) to path {}."; | ||
private static final String MESSAGE_CLOSE = "DummyWriter closed."; | ||
|
||
@Override | ||
public void addJsonEntry(Object jsonContent, String path) { | ||
logger.info(MESSAGE_JSON, jsonContent, path); | ||
} | ||
|
||
@Override | ||
public void addFileContentEntry(String path, File original) { | ||
logger.info(MESSAGE_FILE, original.getAbsolutePath(), path); | ||
} | ||
|
||
@Override | ||
public void writeStringEntry(String entry, String path) { | ||
logger.info(MESSAGE_STRING, entry, path); | ||
} | ||
|
||
@Override | ||
public void close() { | ||
logger.info(MESSAGE_CLOSE); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
core/src/main/java/de/jplag/reporting/reportobject/writer/DummyWriter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.