ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Harp" <>
Subject RE: Simple XDoclet exmple?
Date Mon, 15 Dec 2003 13:37:24 GMT
It worked! You're a genius Erik!

Well, I did what you suggested and built the Ant stuff locally, switched
ANT_HOME to point there and wala, the xdocs stuff built for me. Thanks much
for all the help Erik. Once I get this all setup, I'm gonna try to see if I
can't auto-generate some of the task code itself since a lot of it is

Now, I have a couple more questions...

1. Where is the documentation for the Ant tags for XDoclet? I looked at the
.xdt that it uses and all I can seem to find in there is ant.task and
ant.attribute. I'm hoping there is a complete listing somewhere for all of
the tags.

2. How do I put examples into my source file and have them come up under an
"Examples" heading (like Javac.html)? I've tried some tag name guesses but
no luck. Looking at the Javac task, it looks like they have a seperate
javac.xml file that is all comments, then it's merged into the results of
parsing the javac.jar to build the final javac.html. Is this the case? How
is that javac.xml file built and maintained?

3. Can I inherit from the ant class "Task" w/o making my source code GNU
licensed? It's not that big of a deal since I think we are eventually
(couple months) going to release it under GNU, but until then it would be
nice to not have to provide source code and all that from our website while
we do Beta testing and prepare for the actual release.

Thanks much!


> -----Original Message-----
> From: Erik Hatcher []
> Sent: Friday, December 12, 2003 5:59 PM
> To: Ant Users List
> Subject: Re: Simple XDoclet exmple?
> On Friday, December 12, 2003, at 03:10  PM, Matt Harp wrote:
> > Well, I really hope to be able to use it to generate some
> > documentation and
> > maybe even some code. My biggest complaint with it is that the XDoclet
> > website isn't very detailed with examples and usage ideas. All I've
> > found is
> > mostly stuff on EJB, which doesn't pertain my situation. It seems like
> > it'll
> > be really cool once I figure it out though :)
> Manning has an XDoclet in Action book that is hot off the press.  It
> rocks!  (ObDisclaimer: I was the tech. reviewer of it)
> <>
> XDoclet has tons of reference material on their site, but yes it is
> short on the how-to.  There are lots of articles about it.  I wrote one
> for JavaPro that published in their online offerings:
> 	<>
> (pointers to the first two parts on that one)
> > If I get some stuff working, I'm willing to help out with examples or
> > what
> > not if you're interested in help. If so, let me know.
> Help always appreciated.  Just hop on the dev list when you're ready
> and submit patches and comments.
> > Probably, but I don't feel like looking them up and what not :) I just
> > wanted to do it because I thought it generated the Ant documentation
> > for the
> > manual pages. Since it doesn't I'm not really interested in getting it
> > working.
> The idea is for it to become the mechanism.  And some task docs are
> generated that way, but in a less-than-automated fashion.
> > So then how is the Ant manual generated? This page is what I read that
> > led
> > to me believe it was being built with XDoclet.
> >
> > near the bottom it talks
> > about the xdocs stuff.
> The current docs are static HTML files that are maintained separately
> from the source code.  And as you might expect, things can easily get
> out of sync.
> >> I don't understand this question.  What do you want to do with the tag
> >> and generic Java code you describe?
> >
> > I have a file which has the mytask class which inherits
> > off of
> > AntTask. Then say I have a setMyAttrib method which can be true or
> > false. I
> > want to be able to put some xdoclet tags about that set method that
> > can then
> > be read by xdoclet and then generate an HTML table with the atribute
> > name,
> > description, required? just like the Ant task manual pages have.
> Just to be precise, you mean Task, not AntTask I presume.
> > Basically, I want to create a page like this one
> > %ANT_HOME%\docs\manual\CoreTasks\get.html for the Get task that ships
> > with
> > Ant, but for my new Ant task using the XDoclet stuff.
> This is exactly what proposal/xdocs does.  So you're on the right
> track.  Keep pressing on.  Don't give up too easily.  This is open
> source, baby.... you gotta have a little perseverance and bear with bad
> or missing docs and startup learning curves :))  (otherwise you'd pay
> me to come do it for you, right?)
> > All the tasks though on the XDoclet page are for stuff like EJB, JDO,
> > etc...
> > and seem to be geared toward code/config file generation. None of which
> > interests me right now.
> This is the primary use of XDoclet in the mainstream.  It can do tons
> more.... any time the source of metadata is .java files then XDoclet is
> one of the tools of choice.
> > I have donwloaded the sample you point to, and finally found someone
> > with a
> > j2ee.jar I could use so I'm gonna try the example out later today and
> > see
> > what all it does.
> I guess the error message was informative then :)
> 	Erik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message