- This topic has 4 replies, 2 voices, and was last updated 21 years, 4 months ago by
Scott Anderson.
-
AuthorPosts
-
bhawanakatiyarMemberHi,
I am new to myeclipseIDE. I have 2 modules – EJBApp and WebApp as part of EJBear project.
EJBApp has the follwoing structure:— EJBAPP
—– src
—– META-INF
———–ejb-jar.xml, jboss.xmlWhen I try to “deploy”, everything gets copied to the deploy directory of my application server, except the META-INF directory.
Is their an ant script I can look at that copies the EJBApp and WebAPP on deploy?Thanks
Bhawana
bhawanakatiyarMemberI have solved that – I was trying to edit the xdoclet-build.xml manually. Looks like I was supposed to just use the myeclipse-xdoclet tool.
I use com.sun.tools.xjc.XJCTask to generate some classes from a schema. I am not sure how to integrate that in MyEclipseIDE.Thanks
Bhawana
Scott AndersonParticipantBhawana,
I use com.sun.tools.xjc.XJCTask to generate some classes from a schema. I am not sure how to integrate that in MyEclipseIDE.
That depends on what you do with the generated classes. If you generate source and just bring them into your Eclipse project under the source folder there is nothing special you need to do. Depends on what you’re up to, really.
bhawanakatiyarMemberScott,
Thanks for the response. I am moving from my old command line deployment script to MyeclipseIDE. Actually I thought that I would get rid of my existing ant script that generates source using xdoclet and xjc task , compiles the classes, builds an ear application and deploys it over to Jboss server.I got rid of the xdoclet part to generate source using Myeclipse-xdoclet configuration and also the compile and deploy parts. For source generation using XJC task, I have 2 options :
1) To generate source using XJC task using my ant script and put it under ‘src’. Now, build the project and deploy it.
2) Integrate the generation of source using XJC task in MyEclipse, so that I get rid of the 2 step process.
I am interested in the option 2. Is their a way, I can integrate my ant target (XJC task) in MyEclipse build process.
Thanks
Bhawana
Scott AndersonParticipantBhawana,
Naturally, option 1 is quite straightforward and will be a nice fallback if we can’t get this to work. Right now, the deployment mechanism of MyEclipse isn’t extensible so we can’t tie in to do what you want at deploy time. Another option is tieing directly into XDoclet through a new doclet, subtask, or merge point. Unfortunately, I’m not a good enough XDoclet user to be able to tell you how to do this. I’d just have to start with the XDoclet reference manual and see what I could figure out.
If you get something going here, I’m sure there are many other users that would be interested in hearing about it. 🙂
-
AuthorPosts