On my Linux machine, I need to modify the build.xml file to add this setting inside the <javac> ant tasks:
encoding="utf-8"
Otherwise, I get these types of compilation errors when certain source files in the module directory are compiled:
"unmappable character for encoding ASCII"
Apparently on my SUSE Linux machine, ASCII is the default encoding. |
|
jeckels responded: |
2011-09-06 09:59 |
Hi Scott,
Sorry it's taken me so long to look into this. Did you get this error on files that are part of the core LabKey Server SVN repository, or on your own module source files? If it's the former, do you remember which ones caused problems?
Thanks,
Josh |
|
slangley responded: |
2011-09-06 10:39 |
Hi Josh,
It's happened a few time due to code in the LabKey Server SVN repository in the customModules directory.
Scott |
|
jeckels responded: |
2011-09-07 12:41 |
Hi Scott,
Thanks for the pointer. I tracked down what appears to be the responsible source file, and have changed it to use the standard Java source code unicode escape sequence. With that change, I was able to build successfully after forcing all my <javac> usages in the main build.xml to use encoding="ascii". I'll check it into the trunk shortly, and that will hopefully eliminate the need for your local edits.
Thanks,
Josh |
|
|
|