File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mac OS and the fly likes jar .DS_Store Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "jar .DS_Store" Watch "jar .DS_Store" New topic

jar .DS_Store

Kim Mirtens

Joined: Dec 17, 2006
Posts: 21
When I jar my project it includes the .DS_Store files. How can I get around this?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42952
You could use the Ant jar task, and list that filename in the 'excludes' attribute.
wood burning stoves
subject: jar .DS_Store