You can accomplish something like this by using the replace ant task in your
build system. So basically you make two files. One that contains the ejb-ref
tags that are in your web.xml, and the other that contains the ones in
jboss-web.xml.
You then add a comment to both your web.xml and jboss-web.xml that has
something like
| "<!-- insert ejb-refs here -->"
|
and then you would have the following in some ant task
| <loadfile property="ejb-refs-content" srcFile="ejb-refs.xml"/>
| <loadfile property="jboss-ejb-refs-content" srcfile="jboss-ejb-refs.xml"/>
| <replace file="web.xml">
| <replacefilter token="<!-- insert ejb-refs here -->"
value="${ejb-refs-content}"/>
| </replace>
| <replace file="jboss-web.xml">
| <replacefilter token="<!-- insert ejb-refs here -->"
value="${jboss-ejb-refs-content}"/>
| </replace>
|
Hope that helps!
-Jason
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913132#3913132
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913132
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user