Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Build Problem: Classes not copied into product



It would probably be best to file a bug for this at <http://developer.apple.com/bugreporter>. Be sure to include the raw build output and the JavaFileList from your build directory. It would also be good to include a recursive long listing (ls -lR) of the whole build directory. And finally, make sure you also mention which files you had changed to cause the build.

Dave

On Tuesday, September 9, 2003, at 12:56 PM, John Gersh wrote:

I'm encountering a Java project build problem that I haven't seen before. I don't remember this exact problem being discussed here, nor does a search of the archives (for what that's worth) turn up anything.

The problem only occurs when the target is set to produce a Java class hierarchy rather than a jar file in the Java Archive Settings. Things work fine when producing a jar.

Here's the symptom: Changes in the source aren't reflected in the application after a ordinary build. Clean builds are fine.

Here's the underlying problem: Newly-compiled class files are not copied into the product's Contents/Resources/Java directory in an ordinary build.

The JavaFileList file and the build log show that changed source files (and only them) are, in fact, being compiled, and the corresponding class files in the project's <Project>.build/<Project>.build/JavaClasses directory show a modification time reflecting that compile. Unfortunately the class files in the product's Contents/Resources/Java directory show a modification time corresponding to the last clean build; the newly-compiled files aren't being copied into the product.

Not a big problem, because in this case putting the build result into a jar every time is OK, though a little more time-consuming, but I'm curious:

Have I got a setting wrong? Is this a known bug? Desired behavior? Workarounds?

Thanks,

- John Gersh
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Java Build Problem: Classes not copied into product (From: John Gersh <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.