Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-192

Cannot change jboss-web.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7
    • None
    • Maven Integration
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            felipeal Felipe Leme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: