Maven Enforcer Plugin
  1. Maven Enforcer Plugin
  2. MENFORCER-69

requireFilesDontExist doesn't work against symlinks

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0-beta-1
    • Fix Version/s: None
    • Component/s: Standard Rules
    • Labels:
      None
    • 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
    • Number of attachments :
      0

      Description

      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

        Activity

        Hide
        Krashan Brahmanjara added a comment -

        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.

        Show
        Krashan Brahmanjara added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Malachi de AElfweald
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: