Maven 1.x Ear Plugin

Case check fails when directories symlinked

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.6
  • Fix Version/s: 1.7
  • Component/s: None
  • Labels:
    None
  • Environment:
    linux
  • Number of attachments :
    0

Description

The following test fails when the directory is symlinked, ie /work/maven -> /mnt/hdc2/work/maven

<j:if test="${!(checkFile.getAbsolutePath().equals(checkFile.getCanonicalPath()))}">
<ant:fail>Case-sensitive issue: The dependency ${dep.id} has a case problem. The dependency was either retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix your project.xml or update your local repository with the properly-cased file and try again.</ant:fail>
</j:if>

A safer test would be to do checkFile.getCanonicalPath().indexOf(checkFile.getAbsolutePath()) == '-1'

Also would be more imformative for the poor end user if the error message include what was being tested.

Issue Links

Activity

Hide
Felipe Leme added a comment -

I'm removing the dependency checking, as it is causing too much hassle.

Show
Felipe Leme added a comment - I'm removing the dependency checking, as it is causing too much hassle.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: