The Artima Developer Community
Sponsored Link

Java Buzz Forum
Why it can be so frustrating getting things to work...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Why it can be so frustrating getting things to work... Posted: Nov 25, 2004 9:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Why it can be so frustrating getting things to work...
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
I just spent too long tweaking my build to use XDoclet with the Hibernate Doclet. At first, I thought I would try the Maven plugin, which has you setup, what makes sense in the XML files into a scary set of properties: # ----------------------------------------------------------------------------- # XDoclet Hibernate Doclet # ----------------------------------------------------------------------------- maven.xdoclet.hibernatedoclet.destDir=${build.web.dir} maven.xdoclet.hibernatedoclet.excludedTags=@version,@author,@todo maven.xdoclet.hibernatedoclet.force=false maven.xdoclet.hibernatedoclet.verbose=false maven.xdoclet.hibernatedoclet.hibernate.0.Version=2.0 maven.xdoclet.hibernatedoclet.hibernate.0.validateXML=true maven.xdoclet.hibernatedoclet.fileset.0=true maven.xdoclet.hibernatedoclet.fileset.0.dir=${maven.src.dir}/java maven.xdoclet.hibernatedoclet.fileset.0.include=foo/model/*.java Then I could add: <preGoal name="java:compile"> <attainGoal name="xdoclet:hibernatedoclet"/> </preGoal> To get this right takes a few peeks into the plugin.jelly *just* to make sure. Anyway, after this was all setup, no Hibernate files were getting generated. Lots of futzing around later (make sure the dirs were right etc) and I ended up taking a step back. I moved from the Maven plugin to just use the hibernatedoclet "manually" in the preGoal. This also didn't work. I took the smart step back and setup a minimal build.xml which was JUST going to do the mapping. I ran ant and got an error message saying that the WebDocletTask wasn't found. Surely I read this wrong... it means HibernateDocletTask right? I guess not. I grabbed the xdoclet web module and everything worked fine. Gotta love not getting any error messages that make sense!

Read: Why it can be so frustrating getting things to work...

Topic: No more reasons to stay with Mozilla Previous Topic   Next Topic Topic: Embedding Groovy Eval in Derby =)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use