newline - What is the easiest way convert line endings to unix style when creating tar file in Gradle? -


at work use mixture of windows , linux workstations during development. deployment deploy unix machines. i'd ensure line endings in unix format. easiest way in gradle achieve this? thinking might possible use filterreader didn't manage find ready made one. best option?

editing entry use copy task instead. initial version of using tar task noticed while stripping crlf when run in linux on windows failing work correctly. since they're both copyspecs afaik have expected tar tasks work same sadly not case (gradle 1.0-milestone-3).

looks i've figured out myself. filterreader required fixcrlffilter. following snippet shows how might use it:

import org.apache.tools.ant.filters.*;  task archiveit(type: copy) {   "conf"   "targetdir"   filter(fixcrlffilter.class,          eol:fixcrlffilter.crlf.newinstance("lf")) } 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -