Mailing Lists: Apple Mailing Lists

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

Java Build Problem: Classes not copied into product



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.



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.