- This topic has 1 reply, 2 voices, and was last updated 18 years, 1 month ago by Scott Anderson.
-
AuthorPosts
-
trans888MemberThis is with myeclipse 5.1 (but probably not actually ‘tied’ to any myeclipse version)…its also probably a FAQ, but I couldn’t do a search that threw up an answer.
I have no problems deploying a JEE EAR to jboss’ server/default/deploy directory (exploded or unexploded, no probs…), BUT that EAR depends on a datasource document also being placed in the server/default/deploy alongside the EAR:jboss will create the datasource using the XML file and then deploy the ear (which contains components that use the datasource).
The question is: can I configure myeclipse to deploy/undeploy BOTH files at one time?
I can write an ant script to do this, but “why buy a dog and then bark yourself?”…I’m using an IDE to make my life easier (one can ALWAYS drop to vim/ant/shell, after all).
In the general case, I may have anumber of datasource documents that need to be deployed alongside my ear…
Any suggestions/thoughts gratefully received.
Scott AndersonParticipantwhy buy a dog and then bark yourself?
The Texan in me loves this. 🙂 What you’re trying to do is not specifically supported. While I can come up with something involving a “fake” web project and a custom deployment location, such a solution is much less straightforward than simply writing a short Ant script within MyEclipse and then running it off the context menu to “deploy” your new datasource files to JBoss if they’ve changed. I don’t suppose the datasource files could be part of the EAR and JBoss would notice that it needs to create the datasource first?
I wish I had a simple fix for you, but an “in parallel” deployment between a set of projects and an unknown number of external files just isn’t something that’s come up before.
-
AuthorPosts