Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

preventing .DS_Store file creation in jar in OSX?

 
   Macintosh computer (Home) -> Tools RSS
Next:  text formatting lost in powerpoint saved as quick..  
Author Message
Bill Christens-Bar1

External


Since: Jul 13, 2004
Posts: 13



(Msg. 1) Posted: Wed Jul 19, 2006 1:55 pm
Post subject: preventing .DS_Store file creation in jar in OSX?
Archived from groups: comp>sys>mac>programmer>tools, others (more info?)

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

 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Steve W. Jackson

External


Since: Jun 30, 2006
Posts: 75



(Msg. 2) Posted: Wed Jul 19, 2006 1:55 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Bill Christens-Barry 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 =
--
Steve W. Jackson
Montgomery, Alabama

 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Bill Christens-Bar1

External


Since: Jul 13, 2004
Posts: 13



(Msg. 3) Posted: Wed Jul 19, 2006 3:55 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 ,
"Steve W. Jackson" wrote:

> In article ,
> Bill Christens-Barry 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 =
 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Steve W. Jackson

External


Since: Jun 30, 2006
Posts: 75



(Msg. 4) Posted: Wed Jul 19, 2006 3:55 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Bill Christens-Barry 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 ,
> "Steve W. Jackson" wrote:
>
> > In article ,
> > Bill Christens-Barry 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
 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
steve

External


Since: May 19, 2006
Posts: 2



(Msg. 5) Posted: Wed Jul 19, 2006 7:55 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 20 Jul 2006 04:39:00 +0800, Steve W. Jackson wrote
(in article ):

> In article ,
> Bill Christens-Barry 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 ,
>> "Steve W. Jackson" wrote:
>>
>>> In article ,
>>> Bill Christens-Barry 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 =
>

the .ds_store , files do not need the window to be opened, they often appear
in directories that have never been opened in the finder.

However , that said, Linux and the cvs systems also have a lot of similar
files scattered about their directory structures
if you use an IDE to build your jar files, most ide's allow an exemption list
, which excludes the named files from any build or system process.

steve
 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Steve W. Jackson

External


Since: Jun 30, 2006
Posts: 75



(Msg. 6) Posted: Thu Jul 20, 2006 1:00 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , steve wrote:

[ snip ]
>
> the .ds_store , files do not need the window to be opened, they often appear
> in directories that have never been opened in the finder.
>
> However , that said, Linux and the cvs systems also have a lot of similar
> files scattered about their directory structures
> if you use an IDE to build your jar files, most ide's allow an exemption list
> , which excludes the named files from any build or system process.
>
> steve

You'll have to show me evidence of the unprovoked appearance of
..DS_Store files. In my years of using OS X, I've never found it to be
the case.
--
Steve W. Jackson
Montgomery, Alabama
 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Gregory Weston1

External


Since: Oct 03, 2004
Posts: 2243



(Msg. 7) Posted: Fri Jul 21, 2006 8:41 pm
Post subject: Re: preventing .DS_Store file creation in jar in OSX? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
"Steve W. Jackson" wrote:

> In article , steve wrote:
>
> [ snip ]
> >
> > the .ds_store , files do not need the window to be opened, they often
> > appear
> > in directories that have never been opened in the finder.
> >
> > However , that said, Linux and the cvs systems also have a lot of similar
> > files scattered about their directory structures
> > if you use an IDE to build your jar files, most ide's allow an exemption
> > list
> > , which excludes the named files from any build or system process.
> >
> > steve
>
> You'll have to show me evidence of the unprovoked appearance of
> .DS_Store files. In my years of using OS X, I've never found it to be
> the case.

It can be done, if something programmatically sets a property of the
folder or a contained file that is among the things that are stored in a
..DS_Store file. Here's my contrived example...

In Terminal:

mkdir foo;cd foo;touch blarg;ls -la

(Creates a pristine directory, creates a file in it, and shows that
there's no .DS_Store.)

In Script Editor:

tell application "Finder"
set theFile to file "blarg" of folder "foo" of folder "greg" of
folder "Users" of disk "Macintosh HD"
set comment of theFile to "arglebargle"
end tell

In Terminal:

ls -la

(Now there's a .DS_Store.)



Now, I'd say that to say they "often" appear in directories that haven't
been opened by Finder is not a general truth, but it could be that
someone has and regularly uses a tool that for some reason sets those
properties.

--
What I write is what I mean. I request that anyone who decides to respond
please refrain from "disagreeing" with something I didn't write in the first
place.
 >> Stay informed about: preventing .DS_Store file creation in jar in OSX? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to render bitmap to QT file - Hello, I am in need of some help. I am working on a project which involves rendering bitmaps to a QuickTime file. I am working with the latest QT SDK and have worked with it before. I believe there is a way to open a qt file, get a context which I can..

MacCvs Pro and file permissions - On Mac OS X, using MacCvs Pro and a linux CVS I have been unable to add files to the repository and get them back with the same unix file permissions (in my case execute permission for shell scripts)... I think it's a bug/limit of MacCVS Pro, can anyone....

file descriptor leaks - Hi, anybody know of a tool that can tell me where in my code a file descriptor leak happens? It's a objective-c/cocoa application on MacOs X 10.3.7 thanks Ole Andre Karlson oleaka@ifi.uio.no http://heim.ifi.uio.no/~oleaka

How to know the version of a library file? - Hello, My question is pretty simple. I would like to know how can I know the version number of a library file. Is the version number in the library file itself? I'm always sure there is a tool for that purpose.

Read image file from disk - Hello everybody, I want to use vImage library for image processing. This library does not contain any function to read and write image from and to the disk. How can I do that? Thanks, Geppy
   Macintosh computer (Home) -> Tools All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]