• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode 3 and javadoc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 3 and javadoc


  • Subject: Re: XCode 3 and javadoc
  • From: Nathaniel Trevivian <email@hidden>
  • Date: Fri, 22 Aug 2008 09:03:13 +0100

Thanks for all your help.

Sorry for calling it XCode - you must get a lot of coders on here doing that!

I was under the impression that a target did not need to depend on another target in order to be executed, but rather "depends" is used to control the ordering as to whichever targets are executed. I now understand that ant, if not given a specific target in the command call, will go for the default only, rather than executing all targets in the build file.

As my javadoc target was not in the dependencies chain, it was not getting executed.

I decided to go for the option of including it in the dependencies, rather than creating another Xcode target, purely for convenience - I want my project to build, create dist jars and generate javadoc all in one build process, rather than having to keep swapping between two Xcode targets and building multiple times.

Thanks for all your help. I think I need to learn more about ant (especially having come off the back of jam).

Nathan

On 22 Aug 2008, at 00:59, Greg Guerin wrote:

Nathaniel Trevivian wrote:

I added the javadoc target to the build file recently. I thought all I needed to do was add another target to the build file, and it would be called during XCode's build process.

Adding an Ant target to build.xml will only affect the build if you also list the target in the default build dependencies.


Xcode knows nothing about the contents of build.xml. It defers the building entirely to Ant. So if Ant isn't building your javadoc target, it's because it's not in Ant's dependencies for what's being built. That is, it's not in your build.xml file's default target dependencies.

If you want Xcode to run Ant so it builds a javadoc target, then you have to add an Xcode target that tells Ant to do this. There is a parameter in the Xcode target that provides the name of the Ant target to build. Change that to 'javadoc' and Ant will build that target; don't and it won't.

If you don't have a 2nd Xcode target and don't know how to add one, post again and say that.

If you already have a 2nd Xcode target that should be building the Ant 'javadoc' target, then post again and say that.

 -- 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

_______________________________________________ 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
References: 
 >Re: XCode 3 and javadoc (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Newbie question re Xcode on Leopard
  • Next by Date: Enable Ativec for release build
  • Previous by thread: Re: XCode 3 and javadoc
  • Next by thread: Unable to read symbols for...
  • Index(es):
    • Date
    • Thread