Hi,
Am 06.10.2010 13:59, schrieb Jukka Zitting:
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/
That didn't work for me at first. I found a possible solution later: I have to
escape the backslashes with an additional backslash.
In the meanwhile I did the following:
- "mvn site" in the pdfbox-reactor main directory
- copy all files from pdfbox/target/site/apidocs site/target/site/apidocs
- "mvn install in the site main directory to copy the apidocs files to the
publish directory using the fixcrlf ant-task
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
Sounds good. What about the fontbox and the jempbox javadocs? We should add them
too.
BR,
Jukka Zitting
BR
Andreas Lehmkühler