-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Use Lookup Table to Associate ComparisonFileName to SubmissionFil…
…eNames
- Loading branch information
1 parent
ae5a159
commit 3416e17
Showing
12 changed files
with
211 additions
and
246 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
49 changes: 42 additions & 7 deletions
49
...object/mapper/ComparisonReportMapper.java → ...g/jsonfactory/ComparisonReportWriter.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
22 changes: 22 additions & 0 deletions
22
jplag/src/main/java/de/jplag/reporting/jsonfactory/DirectoryCreator.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,22 @@ | ||
package de.jplag.reporting.jsonfactory; | ||
|
||
import java.io.File; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class DirectoryCreator { | ||
private static final Logger logger = LoggerFactory.getLogger(DirectoryCreator.class); | ||
|
||
public static File createDirectory(String path, String name) { | ||
File directory = new File(path.concat("/").concat(name)); | ||
if (!directory.exists() && !directory.mkdirs()) { | ||
logger.error("Failed to create dir."); | ||
} | ||
return directory; | ||
} | ||
|
||
public static void createDirectory(String path) { | ||
createDirectory(path, ""); | ||
} | ||
} |
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
Oops, something went wrong.