Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-263

package(:war).merge not working correctly with exclude()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.3
    • 1.3.4
    • None
    • None

    Description

      Here's a Buildfile with embedded tests to demonstrate the issue:

      repositories.remote << "http://www.ibiblio.org/maven2/"
      repositories.remote << "http://www.intalio.org/public/maven2/"

      AXIS2_WAR = "org.apache.axis2:axis2-webapp:war:1.3"

      define "merge" do
      project.version = "0.1"
      project.group = "foo"
      package(:war).merge(artifact(AXIS2_WAR)).exclude("WEB-INF/").exclude("META-INF/").exclude("axis2-web/index.jsp")

      check package(:war), 'should contain axis2-web directory' do
      it.should contain('axis2-web/*')
      end
      check package(:war).path('WEB-INF'), 'should not contain WEB-INF' do
      it.should_not contain('*/')
      end
      check package(:war).path('WEB-INF'), 'WEF-INF should not contain axis2-war/index.jsp' do
      it.should_not contain('axis2-war/index.jsp')
      end

      end

      Attachments

        1. Buildfile
          0.7 kB
          Alex Boisvert

        Activity

          People

            Unassigned Unassigned
            boisvert Alex Boisvert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: