I have the correct encoding in SVN and i see the correct text while opening the file in SVN. The above error is thrown during Cobertura compile in Jenkins server ( log below). When i was doing a jenkins build locally, i could not see this error.
I am using Java 1.7 and have integrated Sonar to Jenkins.I am using IVY to manage dependencies inside the project. I searched a lot in the web and Stack Overflow but could only find answers related to Maven.
Would appreciate if someone could help.
Full Log Below
init:
[echo] ### Making default directories ###
[mkdir] Created dir: /opt/hd/dt/var/jenkins/workspace/A/ProjectName/build/classes
cobertura.compile:
[echo] ### Setting Compile Classpath ###
[javac] /opt/hd/dt/var/jenkins/workspace/A/ProjectName/src/com/cs/mm/ab/common/util/Constants.java:119: error: unmappable character for encoding ASCII
[javac] public static final String THANK_YOU = "Thank you for choosing Restie?s for your ";
[javac]
[javac] 1 error
BUILD FAILED
/opt/hd/dt/var/jenkins/workspace/A/ProjectName/build/ant/build.xml:32: The following error occurred while executing this line:
/opt/hd/dt/var/jenkins/workspace/A/ProjectName/build/ant/cobertura-build.xml:51: Compile failed; see the compiler error output for details.