You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Michael Giroux <ml...@gmail.com> on 2007/03/01 18:21:59 UTC
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
RE: reporting @TransactionAttribute is an unknown tag
Posted by Stephen McConnell <mc...@dpml.net>.
> -----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 <mc...@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
Re: reporting @TransactionAttribute is an unknown tag
Posted by Michael Giroux <ml...@gmail.com>.
Full class name: javax.ejb.TransactionAttribute
I did add a jar to the classpath that includes this interface.
Michael
On 3/3/07, Stephen McConnell <mc...@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
>
>
RE: reporting @TransactionAttribute is an unknown tag
Posted by Stephen McConnell <mc...@dpml.net>.
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