ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: <javadoc> reporting @TransactionAttribute is an unknown tag
Date Tue, 06 Mar 2007 08:08:54 GMT
 

> -----Original Message-----
> From: Michael Giroux [mailto:mlgiroux@gmail.com] 
> Sent: Tuesday, 6 March 2007 1:58 AM
> To: Ant Users List
> Subject: Re: <javadoc> reporting @TransactionAttribute is an 
> unknown tag
> 
> Full class name: javax.ejb.TransactionAttribute I did add a 
> jar to the classpath that includes this interface.

If you run the build with -v (verbose mode) you should see the details of
the javadoc application execution.  It should look something like:

  [x:javadoc] Executing 'D:\system\java\jdk\6\bin\javadoc.exe' with
arguments:
  [x:javadoc] ....
  [x:javadoc] The ' characters around the executable and arguments are
  [x:javadoc] not part of the command.
  [x:javadoc] Javadoc execution

One of the arguments is the -classpath supplied to the javadoc tool. One
possibility is that the classpath referencing the jar file containing
javax.ejb.TransactionAttribute incorrectly declared.  Another possibility is
that the version of javadoc in use is an earlier version. You can check this
by looking for the following lines:

  [x:javadoc] Constructing Javadoc information...
  [x:javadoc] Standard Doclet version 1.6.0
  [x:javadoc] Building tree for all the packages and classes...

If everything looks correct I would thinking about the annotation
declaration itself.  If the annotation is proceeded by an "* " then it will
not be recognized as an language annotation but as a javadoc annotation
(which would result in the error your seeing).  If this is the case you need
to move the annotation out of the comment block and into the code source.

Hope this helps.

Cheers, Steve.


> 
> Michael
> 
> On 3/3/07, Stephen McConnell <mcconnell@dpml.net> wrote:
> 
> >
> > Michael:
> >
> > A couple of questions:
> >
> > What is the full name of the TransactionAttribute class?
> > Is the class available in the classpath supplied to the 
> javadoc task?
> >
> > /Steve.
> >
> >
> > > -----Original Message-----
> > > From: Michael Giroux [mailto:mlgiroux@gmail.com]
> > > Sent: Friday, 2 March 2007 3:52 AM
> > > To: Ant Users List
> > > Subject: <javadoc> reporting @TransactionAttribute is an 
> unknown tag
> > >
> > > I'm attempting to generate javadocs for code containing JDK
> > > 1.5 annotations.
> > >
> > > I have specified source='1.5' but this does not eliminate the 
> > > warnings.
> > >
> > > What am I overlooking?
> > >
> > > Thanks
> > > Michael Giroux
> > >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> >
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message