You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Johannes Goebel (Jira)" <ji...@apache.org> on 2020/10/11 11:50:00 UTC

[jira] [Updated] (MENFORCER-364) requireFilesExist rules cannot be configured to be case sensitive

     [ https://issues.apache.org/jira/browse/MENFORCER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Goebel updated MENFORCER-364:
--------------------------------------
    Summary: requireFilesExist rules cannot be configured to be case sensitive  (was: configuration/rules/requireFilesExist/files/file cannot be configured to be case sensitive)

> requireFilesExist rules cannot be configured to be case sensitive
> -----------------------------------------------------------------
>
>                 Key: MENFORCER-364
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-364
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0-M3
>            Reporter: Johannes Goebel
>            Priority: Minor
>
> 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.
> {code:xml}
> <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>
> {code}
> For example, if a file exists in {{src/main/resources/i18n_DE.properties}}, but not the file {{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. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)