package(:war).merge not working correctly with exclude()
--------------------------------------------------------
Key: BUILDR-263
URL: https://issues.apache.org/jira/browse/BUILDR-263
Project: Buildr
Issue Type: Bug
Affects Versions: 1.3.3
Reporter: Alex Boisvert
Fix For: 1.3.4
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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.