Generated property files have Unix-specific line endings at the beginning and platform-specific line endings in the rest of the file. Makes them a pain to edit on Windows or Mac. This happens because the file headers are stored as strings with \n used to encode EOL. The resulting LF character is not translated when the string is written out using println(). To get that effect, replace \n with %n and println with printf.