Last active
August 3, 2018 23:37
-
-
Save breskeby/7858657 to your computer and use it in GitHub Desktop.
dos2unix on some text files with gradle
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
task convertFiles <<{ | |
fileTree("someFolder").matching{ include "**/*.txt"}.each{ aFile -> | |
exec{ | |
commandLine 'dos2unix' | |
args aFile.absolutePath | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment