开发者

Ear encoding inside the archive

These days, I drove crazy to deploy an ear on unix enviroment using Weblogic.

At the end I realized by using (cat -v file.properties) that such file was full of ^M at the end of the line.

This happened because I edited the properties file开发者_开发知识库 on Windows and I transfered to the production eviromnment by FileZilla.

By the usage of dos2unix command, I addressed the problem and the encoding of the file right now is correct.

Because the properties file it's not the only one I edit, but I open the ear archive and customize the config.xml too, and then close the ear again and transfer it to linux, do you think that the encoding of that xml can be a problem even if it's embedded inside the ear ?

Thanks


You could remove the carriage return characters automatically with ants fixcrlf.

If you use maven you could also run an ant task to prepare the files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜