• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

case-insensitive WEB-INF by the jar ...

Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I have a strange problem. When I generate a .war file using ant, the WEB-INF directory name is stored as Web-inf (the culprit might be windows)
This is not for all the occurance. Only for the files directly under WEB-INF. For the other files like under WEB-INF/classes, the directory name is spelled correctly as WEB-INF
So, eventually, I end up getting a war file with the following directory structure :
web.xml web-inf\
mytag.tld web-inf\
myBean.class WEB-INF\classes\mypack
Why do we have two different dir names? The change in case did not give me a problem in windows environment; but I am afraid it might be a problem in linux where I am going to deploy.
The relavent code in build.xml (which is used by ant to create the WEB-INF dir and build myApp.war)

My development environment is :
Windows 98
jdk 1.3
Ant 1.5.1
Tomcat 4.1.12
When I see the directory names in Windows explorer, I see the wrong name web-inf
In the dos prompt, dir command displays the correct name, WEB-INF
Is there any way I could rectify this problem?
Get me the mayor's office! I need to tell him about this tiny ad:
professionally read, modify and write PDF files from Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!