>Now I have to run the ANT task to generate the files. >Then I need to compile them, package them, and copy the >jar to JBoss.
Are you using ant for all these tasks? Or are the last few steps manual?
>>Now I have to run the ANT task to generate the files. >>Then I need to compile them, package them, and copy the >>jar to JBoss.
>Are you using ant for all these tasks? Or are the last few steps manual?
Right now I'm mainly working in JBuilder. But I'm using ANT to build (generate files with XDoclet, compile, and build ejb.jar) and deploy (copy jar to JBoss). This works in ANT and also in JBuilder using the ANT build files.
Now I'd like to do something similar with Eclipse so I can drop JBuilder. In Eclipse, I can right click on the ANT file and run it, selecting the target, etc. This is a problem because I need to generate the XDoclet files BEFORE compiling and then deploy AFTER compiling. So far I don't see an easy way to do this with Eclipse. From what I've seen so far, ANT integration with Eclipse is more work than switching to a DOS window. With JBuilder, JBuilder has hooks for ANT during the build. So you can say "pre-compile execute ANT target x" "post-compile execute ANT target y". Therefore I never invoke ANT manually, it's all automatic. It's very slick and should be relatively easy to do.
So my question is how are people deploying their Eclipse projects to JBoss?
i use Eclipse but i do not use XDoclet. i edit my files in place and use the .ear/.war/.jar folder scheme to deploy my application. this approach is less automated but allows some nice things to happen, such as hot-swapping EJB code in the middle of a debugging session. the only real pain is maintaining the ejb deploy descriptor.
That is not a bad idea, I'm going to try it that way. Thanks.