You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kit Cragin <ki...@mongoosetech.com> on 2001/06/20 21:42:07 UTC

jar/zip tasks and directory case problem

Whenever I use the jar or zip tasks to zip the contents of a directory,
any subdirectories of that directory get stored in lowercase instead of
whatever the case was when the directory was created. This causes
problems when building WAR files and EAR files for some application
servers (they don't like meta-inf or web-inf for example, when it should
be META-INF and WEB-INF).
 
I'm running ant 1.2 on Win 2000. I'm sure this wouldn't be a problem on
Linux. Using WinZip, I have no problem.
 
Any ideas on a workaround for this problem? Does 1.3 correct this by any
chance? Thanks.
 
Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com
 

Re: jar/zip tasks and directory case problem

Posted by Stefan Bodewig <bo...@apache.org>.
Kit Cragin <ki...@mongoosetech.com> wrote:

> This causes problems when building WAR files and EAR files for some
> application servers (they don't like meta-inf or web-inf for
> example, when it should be META-INF and WEB-INF).

Which means they are broken as the spec says they have to accept the
name regardless of case ...

Anyway, for me (Linux, several different JDKs) Ant 1.3 and the current
CVS version of <jar> and <war> add these directories as all uppercase.

Stefan