• 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. Javadoc in xcode 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re. Javadoc in xcode 2


  • Subject: Re. Javadoc in xcode 2
  • From: Thomas Pelaia <email@hidden>
  • Date: Tue, 24 May 2005 15:04:08 -0400

You can add an external target to your project to perform a Javadoc operation on your source code using Ant.

Add an external target to your project and call it something like "Javadoc" for example. Specify "/Developer/Java/Ant/bin/ant" for the build tool and "javadoc" for the argument. Make sure this file resides at the top level of your project where your source code resides.

Next add a file called "build.xml" to your project and include the following lines replacing paths if necessary. In my case I have the build folder outside of my project one level up hence the "../build" entry for the "buildroot" variable. Executing this in XCode for your project will result in the documentation being placed in a folder called "javadoc" under your build folder. You can customize this Ant build file as needed.

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="javadoc" name="javadoc">
    <target name="init">
        <property environment="env"/>
        <property name="buildroot" value="../build"/>
        <mkdir dir="${buildroot}"/>
    </target>


<target name="javadoc" depends="init" description="Javadoc for my API." >
<mkdir dir="${buildroot}/javadoc"/>
<javadoc destdir="${buildroot}/javadoc" maxmemory="128m">
<fileset dir=".">
<include name="**/*.java"/>
</fileset>
<classpath>
<pathelement location="/System/Library/Frameworks/ JavaFoundation.framework/Resources/Java/javafoundation.jar"/>
<pathelement location="/System/Library/Frameworks/ JavaWebObjects.framework/Resources/Java/javawebobjects.jar"/>
<pathelement location="/System/Library/Frameworks/ JavaEOAccess.framework/Resources/Java/javaeoaccess.jar"/>
<pathelement location="/System/Library/Frameworks/ JavaEOControl.framework/Resources/Java/javaeocontrol.jar"/>
<pathelement location="/System/Library/Frameworks/ JavaWOExtensions.framework/Resources/Java/javawoextensions.jar"/>
</classpath>
</javadoc>
</target>
</project>



_________ Tom Pelaia, Ph.D., R&D Staff Spallation Neutron Source, Accelerator Systems Division Oak Ridge National Laboratory



On May 24, 2005, at 6:21 AM, email@hidden wrote:

Date: Tue, 24 May 2005 16:44:56 +0900
From: ?? ?? <email@hidden>
Subject: Javadoc in xcode 2
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello,

is there a way to generate and manage javadoc in xcode 2?

I need it to document WebObjects frameworks. And maintain from
command line is a pain.

Regards

Kuon


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: many-to-many insert/edit relationship [w PWO identification scheme]
  • Next by Date: Re: eosharededitingcontext & in memory fetching
  • Previous by thread: Re: eosharededitingcontext & in memory fetching
  • Next by thread: Build failure... after upgrade
  • Index(es):
    • Date
    • Thread