Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-383

svn inconsistent line ending style

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • prepare
    • None

    Description

      The problem occurs in the CDATA section of the maven-eclipse-plugin -
      when setting the contents of the .checkstyle file.

      pom.xml
      ...
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-eclipse-plugin</artifactId>
               <configuration>
                 <downloadSources>true</downloadSources>
                 <additionalBuildcommands>
                   <buildcommand>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</buildcommand>
                 </additionalBuildcommands>
                 <additionalProjectnatures>
                   <projectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</projectnature>
                 </additionalProjectnatures>
                 <additionalConfig>
                   <file>
                     <name>.checkstyle</name>
                     <content>
                       <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
      <fileset-config file-format-version="1.2.0" simple-config="true">
         <fileset name="all" enabled="true" check-config-name="QifCon" local="false">
             <file-match-pattern match-pattern="." include-pattern="true" />
         </fileset>
      </fileset-config>
      ]]>
                     </content>
                   </file>
                 </additionalConfig>
               </configuration>
             </plugin>
           </plugins>
      

      When this file is transformed the CDATA section has LF only.
      On windows it should have CR LF.

      I suspect because it uses \n instead of System.getProperty( line.separator );

      Attachments

        Activity

          People

            ndeloof nicolas de loof
            baerrach Barrie Treloar
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: