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: more pains with project builder - Adding files



Ari Fainchtein <email@hidden> wrote:

>i create a project, and then add existing files to the project. but
>when i modify an imported project, the code does not get recompiled!! i
>have tried everything, build, build and run, clean, clean all targets.

Are the existing files from the imported project contributing to the
current target?

Visually, files contribute to the target if they have a checked checkbox in
the Files tab of Groups and Files. If the checkbox is unchecked, then the
file is NOT contributing to the target, and will NOT be recompiled when the
target is built. Unlike CodeWarrior, PB will let you include or exclude
files in a build without defining a new target. If you exclude a file from
all targets in CW, it insists on removing the file from the project.

If you can't get contributing files to compile even after a clean all
targets, then something is drastically wrong, because I've never seen PB
fail in that regard. In fact, quite the opposite. If I edit a
contributing file in a program other than PB, then PB will see the mod-date
change and recompile. This works every time, unless I mess with the
machine's clock. PB will also handle replaced files that have newer dates,
e.g. if I FTP onto my Mac OS X box, and overwrite a contributing JAR or
source file, then PB will see the date change and recompile. I've imported
countless files from existing projects (and project fragments), and the
only time PB doesn't compile them is if I've unchecked the contributing
checkbox (accidentally, once).

Unlike CodeWarrior, there is no visual indication (as far as I can tell)
that shows you whether a source file is newer than the last build, hence
will be recompiled. It's one of the most annoying omissions I find with PB
(v1.1.1). I don't know if this is remedied in a later version of PB, but
it would be an awfully nice addition.

Which version of Mac OS X, and which version of PB are you using?

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
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.