Ant creates WAR/JAR files with a lower-case
March 20th, 2009
Applies to:
Ant
Description:
Occurs while using Apache Ant.
Cause:
Ant created WAR files with a lower-case web-inf or JAR files with a lower-case meta-inf directory.
You may have seen these lower-case directory names in WinZIP, but WinZIP is trying to be helpful (and fails). If WinZIP encounters a filename that is all upper-case, it assumes it has come from an old DOS box and changes the case to all lower-case for you.
If you extract (or just check) the archive with jar, you will see that the names have the correct case.
With WinZIP (version 8.1 at least), this can be corrected in the configuration. In the Options/Configuration menu, in the View tab, General section, check the “Allow all upper case files names” box. The META-INF and WEB-INF will look correct.