Re: Creating a Java project in XCode 3.0
Re: Creating a Java project in XCode 3.0
- Subject: Re: Creating a Java project in XCode 3.0
- From: Greg Guerin <email@hidden>
- Date: Mon, 17 Dec 2007 12:27:08 -0700
Ammeloot wrote:
>Is there any documentation or tutorial around to learn how to use the new
>ant-based Java projects in XCode 3.0 ? I've understood the purpose of the
>"src", "lib", "jar" etc folders, like in an Eclipse project, but how do I
>add a simple Foo.java class source file to the "src" folder ? It doesn't
>work and it doesn't make sense...
Xcode 3's Ant-based project templates use Folder References. This is
signalled by the blue folder icons, instead of yellow ones, which symbolize
Groups.
With Folder References, any file you add or remove to the reference folder
is automatically added or removed from the project. In essence, Xcode is
just acting as your file editor and build initiator; it no longer performs
any dependency management.
You can find out more details of Xcode Folder References by searching ADC
for those keyword terms.
To add a file, you simply add the file to the 'src' folder, using whatever
means you want. If it's a new file, you can duplicate and rename, or
create from a template, or a command-line, or whatever. If it's an
existing file, just drag it into the 'src' folder. It's just plain
ordinary file-management.
Likewise to remove a file: delete it from the 'src' folder, or move it out
to an "Obsolete files" folder, or to the Trash, or whatever you normally do
with files you no longer want.
If you want a classical JAM-based build target, you can get it, but it
won't be Ant-based.
To get a JAM target, add a new Java target to your project. You should see
that it's a classical Java target. Add sources to it, then delete your old
Ant-based target.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden