Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Tools > Re: preventing ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 546 of 637
Post > Topic >>

Re: preventing .DS_Store file creation in jar in OSX?

by "Steve W. Jackson" <stevewjackson@[EMAIL PROTECTED] > Jul 19, 2006 at 03:39 PM

In article <equipoise1-55F533.14480119072006@[EMAIL PROTECTED]
>,
 Bill Christens-Barry <equipoise1@[EMAIL PROTECTED]
> wrote:

> Thanks, Steve. The problem is that there is no pre-existing .DS_Store 
> file in the directory. The Mac under OSX creates these files in a number

> of contexts, although I'm not up on the details, and it presents an 
> irritation since they are visible on other OSs.
> 
> Bill C-B
> 
> In article <stevewjackson-C37FEB.12420419072006@[EMAIL PROTECTED]
>,
>  "Steve W. Jackson" <stevewjackson@[EMAIL PROTECTED]
> wrote:
> 
> > In article <equipoise1-AB6CEB.12174919072006@[EMAIL PROTECTED]
>,
> >  Bill Christens-Barry <equipoise1@[EMAIL PROTECTED]
> wrote:
> > 
> > > How do I prevent the jar command from creating a .DS_Store file in
the 
> > > jar that it creates? Alternatively, how do I remove (different from 
> > > extract) the .DS_Store file from a jar?
> > > 
> > > Thanks.
> > > 
> > > Bill Christens-Barry
> > 
> > The simplest thing is just to eliminate those files from your
directory 
> > structure before creating the jar file, I would imagine. 
Alternatively, 
> > you might see if JarBundler or some other tool on the Mac has the 
> > ability to build your jar as you like and not include those files.
> > 
> > = Steve =

Top-posting strikes again...

The Mac OS X Finder uses the .DS_Store files to store preferences for 
the display of its windows opened for a given directory; when none is 
present, it falls back to defaults.  Unless someone opens a Finder 
window into one of the directories that will ultimately be copied into 
the new jar file, there's no reason one should ever get created there.  
There *must* be one pre-existing or otherwise copied into the locations 
that are being included in the jar file.

I don't know what process you might be using to compile your code and 
build your jar file.  When we're building for a release, the class files 
are placed in separate location from the source, and it's created from 
scratch.  The process is thus completely immune to the possibility of 
..DS_Store files ending up in the resulting directory, and then in the 
jar file built from it.

= Steve =
-- 
Steve W. Jackson
Montgomery, Alabama
 




 7 Posts in Topic:
preventing .DS_Store file creation in jar in OSX?
Bill Christens-Barry <  2006-07-19 16:17:49 
Re: preventing .DS_Store file creation in jar in OSX?
"Steve W. Jackson&qu  2006-07-19 12:42:05 
Re: preventing .DS_Store file creation in jar in OSX?
Bill Christens-Barry <  2006-07-19 18:48:01 
Re: preventing .DS_Store file creation in jar in OSX?
"Steve W. Jackson&qu  2006-07-19 15:39:00 
Re: preventing .DS_Store file creation in jar in OSX?
steve <steve@[EMAIL PR  2006-07-20 06:15:22 
Re: preventing .DS_Store file creation in jar in OSX?
"Steve W. Jackson&qu  2006-07-20 13:00:13 
Re: preventing .DS_Store file creation in jar in OSX?
Gregory Weston <uce@[E  2006-07-21 20:41:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 9:34:31 CST 2008.