Re: Xcode and Javadoc
Re: Xcode and Javadoc
- Subject: Re: Xcode and Javadoc
- From: "Kyle Sluder" <email@hidden>
- Date: Thu, 19 Jul 2007 17:45:42 -0400
Jeff,
.profile is not processed by non-login shells. In fact, just like GNU
Make, Xcode probably runs script phases in a clean environment, where
no variables are set except for $SHELL. Explicitly set CLASSPATH at
the top of the script and try again.
--Kyle Sluder
On 7/19/07, Jeff Dunnett <email@hidden> wrote:
Date: Thu, 19 Jul 2007 09:26:28 -0700
From: Greg Guerin <email@hidden>
Subject: Re: Xcode and Javadoc
To: <email@hidden>
Message-ID: <l03130300c2c53ea45b65@[192.168.11.2]>
Content-Type: text/plain; charset="us-ascii"
Jeff Dunnett wrote:
javadoc *.java
open index.html
exit 0
The shell is expanding *.java. You probably want javadoc itself to expand
it.
To do that, quote the wildcard expression:
javadoc '*.java'
Ok I have done that although it has no affect on the problem.
You may also want to review the javadoc man page for details about how it
deals with particular naming patterns of source files. Javadoc's treatment
of file-names is more subtle than typical commands.
To open a man page in Xcode, choose "Open man page..." from Xcode's Help
menu. The javadoc man page is long and complex enough that it should be
read with some care.
I have taken a long look and tried a few things. I have not found any
solutions here unfortunately.
Perhaps the CLASSPATH is not set somewhere.
If you don't set CLASSPATH somewhere, then it won't be set. Are you
setting CLASSPATH? If so, where? Are you exporting it? Is a CLASSPATH
necessary in order for javadoc to operate with your *.java files?
I set/export the CLASSPATH in the .profile
export
CLASSPATH=/System/Library/Frameworks:/Library/Java:/System/Library/Java:/Library/WebObjects/Extensions/
I am not sure if the CLASSPATH necessary to operate with my *.java files.
Javadoc generates the documents from my *.java files. The thing is when I
run javadoc I get error messages that seem to indicate that it is having
trouble reading some of the classes like com. webobjects.eocontrol and
com.webobjects.foundation. For example the error messages look like:
AddCatalogueItem.java:1: package com.webobjects.foundation does not exist
AddCatalogueItem.java:2: package com.webobjects.appserver does not exist
AddCatalogueItem.java:3: package com.webobjects.eocontrol does not exist
AddCatalogueItem.java:4: package com.webobjects.eoaccess does not exist
AddCatalogueItem.java:5: package org.apache.log4j does not exist
AddCatalogueItem.java:8: cannot find symbol
AddCatalogueItem.java:9: cannot find symbol
Session.java:1: package com.webobjects.foundation does not exist
Session.java:2: package com.webobjects.appserver does not exist
Session.java:3: package com.webobjects.eocontrol does not exist
Session.java:4: package org.apache.log4j does not exist
Session.java:5: package com.reportmill.base does not exist
Session.java:12: cannot find symbol
Catalogue.java:1: package com.webobjects.foundation does not exist
Catalogue.java:2: package com.webobjects.eocontrol does not exist
Catalogue.java:3: package com.webobjects.appserver does not exist
CatalogueParent.java:4: package com.webobjects.foundation does not exist
CatalogueParent.java:5: package com.webobjects.eocontrol does not exist
CatalogueParent.java:9: cannot find symbol
AdminCatalogueList.java:1: package com.webobjects.foundation does not exist
AdminCatalogueList.java:2: package com.webobjects.appserver does not exist
AdminCatalogueList.java:3: package com.webobjects.eocontrol does not exist
AdminCatalogueList.java:4: package com.webobjects.eoaccess does not exist
AdminCatalogueList.java:5: package org.apache.log4j does not exist
AdminCatalogueList.java:8: cannot find symbol
AddCatalogueItem.java:19: cannot find symbol
AddCatalogueItem.java:33: cannot find symbol
AddCatalogueItem.java:53: cannot find symbol
Session.java:16: cannot find symbol
All of the cannot find symbol errors are referring to classes that are part
of the packages it says don't exist (i.e. WOApplication). While it is
producing javadocs
for my classes. I am guess that I should be getting these errors.
I really appreciate the help.
Jeff
_______________________________________________
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