ottlinger commented on code in PR #397:
URL: https://github.com/apache/creadur-rat/pull/397#discussion_r1861862350


##########
apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java:
##########
@@ -159,6 +169,55 @@ public ReportConfiguration() {
         dryRun = false;
         exclusionProcessor = new ExclusionProcessor();
         claimValidator = new ClaimValidator();
+        sources = new ArrayList<>();
+        reportables = new ArrayList<>();
+    }
+
+    /**
+     * Adds a file as a source of files to scan.
+     * The file must be a text file that lists files to be included.
+     * File within the file must be in linux format with a
+     * "/" file separator.
+     * @param file the file to process.
+     */
+    public void addSource(final File file) {

Review Comment:
   Should we add a check here that ensures no backslashes are provided as 
parameter?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@creadur.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to