You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Malachi de AElfweald (JIRA)" <ji...@codehaus.org> on 2009/02/27 01:33:19 UTC

[jira] Created: (MENFORCER-69) requireFilesDontExist doesn't work against symlinks

requireFilesDontExist doesn't work against symlinks
---------------------------------------------------

                 Key: MENFORCER-69
                 URL: http://jira.codehaus.org/browse/MENFORCER-69
             Project: Maven 2.x Enforcer Plugin
          Issue Type: Bug
          Components: Standard Rules
    Affects Versions: 1.0-beta-1
         Environment: [INFO] [enforcer:display-info {execution: enforce-display}]
[INFO] Maven Version: 2.1.0-M1
[INFO] JDK Version: 1.6.0_11 normalized as: 1.6.0-11
[INFO] OS Info: Arch: x86 Family: unix Name: sunos Version: 5.11

            Reporter: Malachi de AElfweald
            Priority: Minor


I created a symlink, say /opt/FAKE pointing to something in my work directory

The requireFilesDontExist rule fails if I check against /opt, but not when checking against /opt/FAKE

It should fail against symlinks



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

        

[jira] Commented: (MENFORCER-69) requireFilesDontExist doesn't work against symlinks

Posted by "Krashan Brahmanjara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MENFORCER-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171694#action_171694 ] 

Krashan Brahmanjara commented on MENFORCER-69:
----------------------------------------------

This definition doesn't work on Windows. File D:\Program Files\SlikSvn\svn.exe exist.

  <requireFilesExist>
                  <files>
                   <file>${env.SVN_HOME}/svn.exe</file>
                  </files>
                </requireFilesExist>


[INFO] [enforcer:enforce {execution: enforce-java}]
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequireFilesExist failed w
h message:
Some required files are missing:
D:\Program Files\SlikSvn\svn.exe

[INFO] -----------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] -----------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages expla
ing why the rule failed.

> requireFilesDontExist doesn't work against symlinks
> ---------------------------------------------------
>
>                 Key: MENFORCER-69
>                 URL: http://jira.codehaus.org/browse/MENFORCER-69
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.0-beta-1
>         Environment: [INFO] [enforcer:display-info {execution: enforce-display}]
> [INFO] Maven Version: 2.1.0-M1
> [INFO] JDK Version: 1.6.0_11 normalized as: 1.6.0-11
> [INFO] OS Info: Arch: x86 Family: unix Name: sunos Version: 5.11
>            Reporter: Malachi de AElfweald
>            Priority: Minor
>
> I created a symlink, say /opt/FAKE pointing to something in my work directory
> The requireFilesDontExist rule fails if I check against /opt, but not when checking against /opt/FAKE
> It should fail against symlinks

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