Mac build fun

Kelly O'Hair kelly.ohair at oracle.com
Wed Jan 9 17:06:04 UTC 2013


Just for the record, I filed a P4 bug 

JDK-8005946 - Mac build problems with .DS_Store files

so this information about .DS_Store files doesn't get completely lost.
Not sure what we can do, but figured I should save the issue.

-kto

On Jan 9, 2013, at 5:33 AM, David Chase wrote:

> 
> On 2013-01-09, at 5:07 AM, Michael McMahon <michael.x.mcmahon at oracle.com> wrote:
> 
>> Are you building on a remote filesystem like NFS? Those .DS_Store files get created by the finder
>> and can cause problems on remote filesystems where they become visible to other software.
>> 
>> There is a way to disable creation of .DS_Store on remote filesystems documented at
>> http://support.apple.com/kb/HT1629
> 
> No, the problem is in a local filesystem, and the .DS_Store files confused the jar packager.
> I figured I had better let someone know what the cause was, else there would be much time wasted when this happened to the next person building on a Mac.  We might catch that exception, check for .DS_Store in the name, and provide a more useful explanation of the root cause, even if we don't get around to "fixing" it soon.  For example:
> 
>        String secondPkgElement = null;
>        try {
>            secondPkgElement = name.substring(firstSlashIndex + 1,
>                                                 name.indexOf("/",
>                                                              firstSlashIndex + 1));
>        } catch (StringIndexOutOfBoundsException ex) {
>            if (name.endsWith("/.DS_Store"))
>                System.err.println ("Unexpected Mac OS Finder file " + name);
>            throw ex;
>        }
> 
> 
> I'm trying asepsis right now.
> 
> David
> 




More information about the build-dev mailing list