Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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
| This issue is superceded by: | ||||
| MPEAR-37 | Remove dependency warning |
|
|
|
I'm removing the dependency checking, as it is causing too much hassle.