You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/07/09 14:03:30 UTC

[jira] Created: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Generated Docs have inconsistent line endings on Windows
--------------------------------------------------------

         Key: INFRA-881
         URL: http://issues.apache.org/jira/browse/INFRA-881
     Project: Infrastructure
        Type: Improvement
    Security: public (Regular issues) 
  Components: Website  
 Environment: Windows XP
    Reporter: Niall Pemberton
    Priority: Minor


Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.

This can be resolved using ant's fixcrlf task [2]:

             <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>

The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.

[1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
[2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/INFRA-881?page=all ]

Niall Pemberton updated INFRA-881:
----------------------------------

    Attachment: infra-site-build-wineol.patch

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>          Key: INFRA-881
>          URL: http://issues.apache.org/jira/browse/INFRA-881
>      Project: Infrastructure
>         Type: Improvement
>     Security: public(Regular issues) 
>   Components: Website
>  Environment: Windows XP
>     Reporter: Niall Pemberton
>     Priority: Minor
>  Attachments: infra-site-build-wineol.patch
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/INFRA-881?page=comments#action_12420219 ] 

Brett Porter commented on INFRA-881:
------------------------------------

this is certainly handy, but it's a bit slow to do every time.

Worth thinking about some more - either an uptodate or a separate target for this might be worthwhile.

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>          Key: INFRA-881
>          URL: http://issues.apache.org/jira/browse/INFRA-881
>      Project: Infrastructure
>         Type: Improvement
>     Security: public(Regular issues) 
>   Components: Website
>  Environment: Windows XP
>     Reporter: Niall Pemberton
>     Priority: Minor
>  Attachments: infra-site-build-wineol.patch
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514750 ] 

Henri Yandell commented on INFRA-881:
-------------------------------------

The asf-site generally uses velocity rather than xsl [seems to be a little bit of xsl in there], so less of a problem on the whitespace.

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>                 Key: INFRA-881
>                 URL: https://issues.apache.org/jira/browse/INFRA-881
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Website
>         Environment: Windows XP
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: infra-site-build-wineol.patch
>
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480994 ] 

Sebb commented on INFRA-881:
----------------------------

If the svn:eol-style is missing, then it's best to fix this on the OS that matches the current state of the file, otherwise lots of spurious updates are generated. This may mean applying fixes on Windows and Unix. But it only has to be done once.

However, the eol-style may not be the only cause of spurious changes to generated html files - it seems that the XSLT processors in some versions of Java generate additional  spaces. I fixed this in the Jakarta build script some while back; yes it does take a bit longer to remove the spaces, but it sure makes the SVN diff e-mails easier to read - indeed it eliminates a lot of them.

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>                 Key: INFRA-881
>                 URL: https://issues.apache.org/jira/browse/INFRA-881
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Website
>         Environment: Windows XP
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: infra-site-build-wineol.patch
>
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed INFRA-881.
-------------------------------

    Resolution: Fixed

This was effectively fixed a while back:

r550648 | sebb | 2007-06-26 01:46:13 +0100 (Tue, 26 Jun 2007) | 1 line
Changed paths:
   M /infrastructure/site/trunk/build.xml

Add optional FixCRLF target for Anakia/Windows misbehaviour

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>                 Key: INFRA-881
>                 URL: https://issues.apache.org/jira/browse/INFRA-881
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Website
>         Environment: Windows XP
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: infra-site-build-wineol.patch
>
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (INFRA-881) Generated Docs have inconsistent line endings on Windows

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480890 ] 

Henri Yandell commented on INFRA-881:
-------------------------------------

Why not just attach a dependency so that it only runs when on Windows?

> Generated Docs have inconsistent line endings on Windows
> --------------------------------------------------------
>
>                 Key: INFRA-881
>                 URL: https://issues.apache.org/jira/browse/INFRA-881
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Website
>         Environment: Windows XP
>            Reporter: Niall Pemberton
>            Priority: Minor
>         Attachments: infra-site-build-wineol.patch
>
>
> Running the ant build [1] to generate the Apache Website in a Windows environment causes documents with mixed line endings (i.e. both CRLF and LF) to be generated. Trying to commit changes causes subversion to reject it with a message indicating this.
> This can be resolved using ant's fixcrlf task [2]:
>              <fixcrlf srcdir="${docs.dest}" includes="**/*.html"/>
> The only problem with adding the above step is with any documents without the "svn:eol-style" property set to "native" - there were a few which I have just changed. I would commit this myself, except for fear of screwing things up.
> [1] http://svn.apache.org/repos/asf/infrastructure/site/trunk/build.xml
> [2] http://ant.apache.org/manual/CoreTasks/fixcrlf.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.