14 lines
599 B
Groovy
14 lines
599 B
Groovy
def latin1File = new File(basedir, 'latin-1/target/classes/META-INF/maven/plugin.xml')
|
|
assert latin1File.exists()
|
|
def latin1Chars = new XmlParser().parse(latin1File).mojos.mojo.description.text()
|
|
println latin1Chars
|
|
assert "TEST-CHARS: \u00C4\u00D6\u00DC\u00E4\u00F6\u00FC\u00DF".equals( latin1Chars )
|
|
|
|
def utf8File = new File(basedir, 'utf-8/target/classes/META-INF/maven/plugin.xml')
|
|
assert utf8File.exists()
|
|
def utf8Chars = new XmlParser().parse(utf8File).mojos.mojo.description.text()
|
|
println utf8Chars
|
|
assert "TEST-CHARS: \u00DF\u0131\u03A3\u042F\u05D0\u20AC".equals( utf8Chars )
|
|
|
|
return true;
|