Hi,

On Wed, Oct 6, 2010 at 1:38 PM, Andreas Lehmkuehler <[email protected]> wrote:
> As the javadocs under [1] are outdated I tried to update them. But svn is
> complaining about "... has inconsistent newlines". Obviously the
> svn-property eol-style isn't compatible with the eol-style of the file. It
> seems to be a DOS/Unix problem but I can't find any maven related hint to
> fix that.

The inconsistent newlines problem is common with lots of automatically
generated content, which is why I configured the site build to use
Ant's fixcrlf task to clean up the generated site before adding it to
svn.

> I tried the following to update the apidocs:
>
> - "mvn site" in the main directory
> - copy all files from pdfbox/target/site/apidocs site/publish/apidocs
> - svn diff -> error has inconsistent newlines
>
> Any ideas?

Quick fix:
find site/publish/apidocs -name '*.html' | xargs perl -i -pe s/\r\n/\n/

PS. As a longer term solution, I'd like to introduce something like
the following to get a more stable set of API references:

    http://pdfbox.apache.org/api/1.0/
    http://pdfbox.apache.org/api/1.1/
    http://pdfbox.apache.org/api/1.2/
    http://pdfbox.apache.org/api/1.3/
    ...
    http://pdfbox.apache.org/api/latest/ -> symlink to the latest version

BR,

Jukka Zitting

Reply via email to