Re: Java packages
Re: Java packages
- Subject: Re: Java packages
- From: "b.bum" <email@hidden>
- Date: Fri, 12 Dec 2003 10:53:24 -0800
On Dec 12, 2003, at 9:30 AM, David Ewing wrote:
No, Xcode doesn't do anything special to help you organize your Java
sources on disk. When you create new source files, you'll need to make
sure you save them in their proper package hierarchy on disk. (This
isn't strictly necessary, but it will make your life _much_ simpler.
Java really likes things that way.)
Yup -- Xcode actually makes this all fairly straightforward. It is
just a bit more manual than desired.
Assuming you have a typical Java source layout:
com/
com/apple
com/apple/core
com/apple/network
com/apple/gui
Then create a group hierarchy in Xcode that corresponds to the above.
Create the same hierarchy of folders within your project's source
directory.
For each group, use the inspector to set references to "group relative"
and set the path for each group to the corresponding folder in the
filesystem.
When creating new source files, select the appropriate group in the
group hierarchy (left pane of your project window) before hitting cmd-n
(File->New File...). This will cause the new file to automatically be
saved to the appropriate folder in the filesystem.
I don't claim that this is an optimal use of Xcode, but it works well
enough for me....
b.bum
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.