ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <>
Subject Re: Generated ivy.xml line endings on windows
Date Fri, 13 Feb 2009 02:07:53 GMT
Raman Gupta wrote:
> We have a project with mixed clients, linux and windows. Therefore we have a
> policy of svn:eol-style LF on our XML checkins to keep everything
> consistent.

We do it differently:

1) svn:eol-style native for all text files.

2) encourage all committers to configure their subversion clients.

3) a committer on UNIX then does a sweep through the svn repo
to find line-endings problems and fixes any issues using dos2unix.
Also ensure eol-style settings. This needs to be done regularly
due to committers not configuring their svn client.

That ensures that source data is correct for the OS that is
generating the files.

I don't yet use Ivy so cannot comment, but i wonder if that
might be the cause.


> The problem is that on publish IVY 2.0.0 on windows generates ivy.xml files
> with mixed line feeds, and calculates the md5 and sha1 sums based on those
> mixed line endings. Subversion of course modifies the line endings upon
> checkin, with the immediate result of breaking the hashes in the repository.
> I haven't looked at the code, but I suspect the behavior of the mixed line
> feeds is most likely from an XML writer rather than IVY itself. Regardless,
> shouldn't IVY regularize the line feeds before generating the sums? Perhaps
> this could be an option on "deliver" to maintain the earlier behavior by
> default.
> If people agree, I can create an entry in the issue tracker for this.
> Cheers,
> Raman Gupta

View raw message