[ 
https://issues.apache.org/jira/browse/MENFORCER-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700849#comment-17700849
 ] 

Torbjörn Svensson commented on MENFORCER-364:
---------------------------------------------

The change in 
[335f26e39d1f20e157c46485481e36f858135a14|https://gitbox.apache.org/repos/asf?p=maven-enforcer.git;a=commit;h=335f26e39d1f20e157c46485481e36f858135a14]
 causes a regression when the file that is to be checked is a symbolic link.

In the case of a symbolic link, the java.io.File#getCanonicalFile() returns the 
fully resolved java.io.File object containing the target of the symbolic link 
and not the link itself.

> requireFilesExist rule should 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
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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 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. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to