-
-
Save hute37/dd60ea9a589aa9f1ca6a23f15e162fab to your computer and use it in GitHub Desktop.
dos2unix on some text files with gradle
This file contains hidden or 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