Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7
-
None
-
None
Description
I faced a situation where I need to set a resource-ref on jboss.xml, but the maven plugin does not provide an elegant way to do it (I had to add a postGoal to cactus:cactifywar) as it always use a jboss-web.xml on the plugin-resources:
<ant:webinf dir="${plugin.resources}/jboss3x">
<ant:include name="jboss-web.xml" if="cactus.home.jboss3x"/>
</ant:webinf>
A temporary solution would be to add a new property:
on plugin.properties:
cactus.jboss3x.jboss_web_xml=${plugin.resources}/jboss3x
on plugin.jelly:
<ant:webinf dir="${cactus.jboss3x.jboss_web_xml}">
<ant:include name="jboss-web.xml" if="cactus.home.jboss3x"/>
</ant:webinf>
A more elegant solution would handle it to Cargo or the Ant task.
Vincent, any thoughts?
– felipe