aspose file tools*
The moose likes Other Java Products and Servers and the fly likes XDoclet in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "XDoclet in eclipse" Watch "XDoclet in eclipse" New topic
Author

XDoclet in eclipse

Ashok C M
Greenhorn

Joined: Dec 03, 2003
Posts: 17
Craig/Norman
Can you tell me how XDoclet can be used from within eclipse?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Ashok C.M.:
can u tell me whether XDoclet can be integrated with eclipse?

http://www.eclipse-plugins.info/eclipse/plugins.jsp?search=XDoclet


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ashok C M
Greenhorn

Joined: Dec 03, 2003
Posts: 17
I've downloaded the plug-in.....Can anyone guide me in using it....
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I know I can't help you with the plugin, but I'm sure it would be easier to get help if you would hint us which plugin you're talking about...
Ashok C M
Greenhorn

Joined: Dec 03, 2003
Posts: 17
It is an integrated plug-in which came with the JBoss plug-in....
org.jboss.ide.eclipse_1.2.1.bin.dist
[ December 11, 2003: Message edited by: Ashok C M ]
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
We discuss JBoss IDE in the book, which has useful XDoclet functionality. There are installation instructions on the JBoss site and in the book. Since I'm not an Eclipse user, I wont try and stumble over install instructions here and point you to those two fine sources of information.
Ashok C. Mohan
Ranch Hand

Joined: Dec 03, 2003
Posts: 75
thanx norman for the info. i'm trying to install the JBoss IDE.....


SCJP 1.4
Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.
Ashok C. Mohan
Ranch Hand

Joined: Dec 03, 2003
Posts: 75
I'm not able to connect and install the JBoss IDE norman!!! I'm behind a proxy and it keeps telling me that the operation timed out.As per the install instructions (If you are behind a proxy you have to go to Window > Preferences > Install/Update, select Enable
HTTP Proxy Connection and insert values for Host Address and Port.)
But i did not even find that option in the Install/Update field......
[ December 12, 2003: Message edited by: Ashok C.M. ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Which version of Eclipse are you using? You could also try downloading a separate HTTP proxy configuration plugin and see if the update tool picks up those configurations. Again, you could try giving the "http.proxyHost" and "http.proxyPort" properties to eclipse.exe upon startup.
Craig Walls
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 301
Originally posted by Ashok C.M.:
Craig/Norman
Can you tell me how XDoclet can be used from within eclipse?

I don't currently use the JBoss-IDE plugin. Not because it sucks--on the contrary, what I've seen of it is pretty cool. I had it installed on my old notebook, but before I got into it I got a new notebook and haven't taken the time to set it up there. But, from what I see of it, I recommend it...in fact, I may make time to set it up on the new machine later today.
But, here's how I use XDoclet with Eclipse...it's not necessarily the best way, but it's the way I've gotten used to.
My projects have two source directories--src and gensrc--and one additional "generated" directory. The "clean" target in my build never blows away the gensrc directory itself...instead it just empties that directory. The reason for this is that if "gensrc" were to suddenly disappear and Eclipse found out about it, after it would be recreated, it wouldn't be considered a source directory anymore. So...just to keep Eclipse happy, I don't touch gensrc itself, but just clean out stuff inside of it.
With that setup, everything else is fairly straightforward. My main source code is in src, my generated Java code goes to gensrc, and anything else that's generated (deployment descriptors, for example) goes to the "generated" directory. After I run Ant, I refresh my project to sync it up with the filesystem and I keep on truckin'.
That's roughly the setup you'll see in the example code for the book. But, I'm starting to switch gears lately and either use Maven. Or, even if I'm using Ant, I try to keep the same directory structure that Maven imposes by default. Specifically, I have a source/java directory that houses all of my Java code and I have a target/source/java directory where all of my generated code goes. Part of the build will copy everything from source/java to target/source/java and compile all source code from there.
Of course...now I've strayed away from how this all ties in with Eclipse. Really, none of what I do in my build is specific for Eclipse except for keeping my gensrc directory hanging around. This probably doesn't help you much, but since I use Eclipse, I thought I'd share my experiences with you. I'll probably install the plugin later today and see how that goes.


Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Craig, I'm glad you astrayed into directory structures as they are often one of the biggest hurdles in adopting tools such as XDoclet. For example, a project using an AOP framework, XDoclet, a code coverage tool, and some XSL processing would probably end up with a handful of different "gen*" directories... And, of course the Ant script becomes more and more cluttered.
Thio Teo
Greenhorn

Joined: Mar 22, 2004
Posts: 1
Originally posted by Ashok C.M.:
Craig/Norman
Can you tell me how XDoclet can be used from within eclipse?

Try looking into the documentation sets available in http://www.jboss.org/developers/projects/jboss/jbosside
(1) "A Install Guide which provides the way to install/upgrade JBoss-IDE."
(2) "A Quick Start Guide which provides an overview of JBoss-IDE."
(3) "A Tutorial which provides a quick tour of the JBoss-IDE features."
Chapter 3 of (2) has a nice chapter on XDoclet Support.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XDoclet in eclipse
 
Similar Threads
Developing an entity bean
Code Generation - Opinions Please?
Eclipse and JBoss
EJB2 using XDoclet 1.2.3 and JBoss 6 in Eclipse Galileo
XDoclet-2 plugins