I translated a Java application using a ResourceBundle with various *.properties files. Now I like to have a Gradle task or want to change the task to automatically exit any Unicode character, replacing it with my ASCII representation, something like a Java native2ascii .
This is what I have done so far with my build file, but the output is not saved :
import org.apache.tools.ant.filters.EscapeUnicode tasks.withType(ProcessResources) { filesMatching('**/*.properties') { println "\t-> ${it}" filter EscapeUnicode } }
Any help is appreciated.
source share