I'm usign Glean, I follow the documentation and I setUp my
envairoment.
I'm have the same error with Dashboard and Cpd
dashboard:
========
init:
....
check-cobertura-data:
strip-dtds:
dashboard:
[groovy] Loading the tool results...
[groovy] Creating the dashboard XML to C:\Development\amlRefactoring
\aml2/artifacts/glean/dashboard/aml2-dashboard-feedback.xml
[groovy] [Fatal Error] aml2-cpd-feedback.xml:1:40: Invalid encoding
name "Cp1252".
[subant] Failure for target '' of: C:\Development\work\automation
\glean-1.2\tool\dashboard\build.xml
The following error occurred while executing this line:
C:\Development\work\automation\glean-1.2\tool\dashboard\build.xml:28:
org.xml.sax.SAXParseException: Invalid encoding name "Cp1252".
feedback-summary:
....
What do you sugget I do?
Thanks
JV
That error is not one I've seen before. Could you send along the top
of your aml2-cpd-feedback.xml file, where the Cp1252 encoding is
specified? I haven't had time to google around on this error, but I
could try to reproduce it on my setup. One suggestion I've seen that
a different XML source reader (Reader vs InputStream). This parsing,
though, is done via a Groovy class that hides this.
Do you know what the file.encoding Java system property is on your
system, by chance?
Is that the only error you're getting in the process?
I'm going to be away this weekend, but I can look into it more next
week.
Thanks,
John
I'm not sure if this will help, but you might try try explicitly
setting the "file.encoding" system property. For Ant, you could do
this by setting the environment variable ANT_OPTS to be "-
Dfile.encoding=ISO-8859-1"
Also, what JDK are you using, 1.4 of 1.5?
John
I set ANT_OPTS to -Dfile.encoding=ISO-8859-1 and now the Dashboards
and CPD work
fine
I'm using Java 1.5
Thanks you for your support
JV