When I create a new Web project on my Linux system, a .mymetadata file is created, which is an XML file. Since my platform is Linux, shouldn’t this file be created/edited as a UNIX text file? If so, then the
line ending characters should only be linefeeds. There shouldn’t be carriage returns at the end of the
lines.
The file that was created on my system has both. Some lines only have linefeeds. Other lines have both carriage returns and linefeeds. It looks like MyEclipse can’t decide which platfrom its running on 🙂
Below, is an example of the .mymetadata file that was created. The lines that end with “^M” are the
lines that have carriage returns. The other lines only have linefeeds.
<?xml version="1.0" encoding="UTF-8"?>^M
<project-module
type="WEB"
name="TestWeb"
id="myeclipse.1145893883377"
context-root="/TestWeb"
j2ee-spec="1.4"
archive="TestWeb.war">^M
<attributes>^M
<attribute name="webrootdir" value="web" />^M
</attributes>^M
</project-module>^M
^M
Where this causes the greatest pain is when checking this file into CVS. I currently have this file identified as a text file to CVS. I could mark it as binary, then I don’t care what line endings it has. But, it might cause problems when my developer that works on Windows uses it. 🙂