Skip to content

Commit

Permalink
#19 adding support for comments and blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
orctom committed Sep 19, 2017
1 parent da5fe0a commit e646036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class FileUtils {
Set<String> nonTemplatesWildcards = nonTemplatesFile.readLines() as Set
FileNameFinder finder = new FileNameFinder()
nonTemplatesWildcards.each {
if (null == it || 0 == it.trim().length() || it.startsWith("#")) {
return
}
def files = finder.getFileNames(templateDirPath, it)
nonTemplates.addAll(files)
}
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/sample/src/main/resources/.nontemplates
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# comments
**/*.jar
**/*.bat
**/*.sh
Expand All @@ -6,7 +7,9 @@
**/*.xz
**/*.tar
**/*.7z

gradle/
.gradle/

gradlew
gradlew.bat

0 comments on commit e646036

Please sign in to comment.