Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-364

requireFilesExist rule should be case sensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-M3
    • 3.0.0
    • None
    • None

    Description

      When using the enforcer plugin with a configuration using the requireFilesExist rule, as follows, the case of the existence of files cannot be enforced case sensitive.

      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <version>3.0.0-M3</version>
          <executions>
              <execution>
                  <id>enforce-files-exist</id>
                  <goals>
                      <goal>enforce</goal>
                  </goals>
                  <configuration>
                      <rules>
                          <requireFilesExist>
                              <files>
                                  <file>src/main/resources/i18n_de.properties</file>
                              </files>
                          </requireFilesExist>
                      </rules>
                      <fail>true</fail>
                  </configuration>
              </execution>
          </executions>
      </plugin>
      

      For example, if the file src/main/resources/i18n_DE.properties exists, but not src/main/resources/i18n_de.properties the execution of the plugin will succeed.
      Unfortunately in my use case, this is exactly the requirement. I have not found a way to enforce case sensitivity for this rule.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            appreciated Johannes Goebel
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: