Re: Ant targets in xcode
Re: Ant targets in xcode
- Subject: Re: Ant targets in xcode
- From: Rob Lockstone <email@hidden>
- Date: Mon, 17 Nov 2003 16:33:17 -0800
Afaik, there is no built-in support in Xcode for recognizing targets in
ant build files. What I have done is configure a Build Style for each
target in my ant build file, e.g. compile, clean.compile, deploy, etc.
I also tend to keep my target names consistent from one ant build
script to another. Obviously, some scripts have targets that others
don't, but you get the idea.
Anyway, each Xcode build style that I define is essentially a single
item: I set the environment variable ANT_TARGET to be the name of the
ant target. For example:
Xcode build style named 'compile': ANT_TARGET = compile
Xcode build style named 'clean.compile': ANT_TARGET = clean.compile
Xcode build style named 'deploy': ANT_TARGET = deploy
Then, in the Xcode Target, I have the build command set to execute Ant
with the additional parameters "-emacs $ANT_TARGET" (without the
quotes, of course). The -emacs allows you the ability to click on the
compilation errors and be taken to the location in the source file
where the error occurred.
Hope that helps.
Rob
PS: If you're an ADC Select or Premier member playing with seed stuff,
beware of some issues wrt the above.
On Nov 17, 2003, at 10:55, Mike T. Miller wrote:
Sorry if this is a dupe; it was the first query I sent to the list and
I'm not sure it made it...
I have a lot of large 'ant' based projects and I would like to
experiment with importing them into 'xcode'. Is there an easy way to
suck them in and have 'xcode' grok the 'ant' targets from the
build.xml files? If not, are there any docs on the file formats
'xcode' uses for it's project build files?
thanks
--
Mike T. Miller
Sr. Java Architect, NorCal Software Services
Sun Microsystems, Inc.
_______________________________________________
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.
_______________________________________________
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.