Thank you for your help! I had to set the project.build.sourceEncoding 
property to UTF-8 in the POM. Now it works.

Sebastian 



On Sunday, 13 May 2012 14:59:52 UTC+2, Ulli Hafner wrote:
>
> This seems to be a problem in your build. Does the build run correctly 
> without jenkins on that Windows machine? Did you specify the encoding in 
> your pom.xml? (For some tools like checkstyle you need to add a 
> -Dfile.encoding="UTF-8" on the maven command line). 
>
> Ulli 
>
> On 05/13/2012 04:07 AM, Sebastian Kwiatkowski wrote: 
> > Hello, 
> > 
> > I'm trying to build a Java project with Jenkins 1.463 on Windows. One 
> > unit test source code file contains the right single quotation mark 
> > (u+2019). When I run the test in IntelliJ, it passes. However, when 
> > the test is ran as part of the Jenkins build process, it fails: 
> > 
> > junit.framework.ComparisonFailure: expected:<[’]> but was:<[’]> 
> > 
> > The expected value in the code is this: 
> > private String UnescapedRightSingleQuotationMark = "’"; 
> > 
> > I have not changed any Jenkins settings other than paths to the JDK 
> > and Maven. The unit testing framework is JUnit 4.10. 
> > 
> > Do I have to change some settings related to file encoding? 
> > 
> > I would appreciate your help. 
> > 
> > 
> > Thank you, 
> > 
> > Sebastian Kwiatkowski 
> > 
>
>

Reply via email to