Bug 1026458

Summary: Support multiple use of rhq:file with same source file name
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: ProvisioningAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Libor Zoubek 2013-11-04 17:31:26 UTC
Description of problem:

Currently our antBundle does not support deployment of same source file to 2 or more places on filesystem


Version-Release number of selected component (if applicable):
RHQ 4.9.0


How reproducible: always


Steps to Reproduce:
1. prepare a bundle with deploy.xml containing following:

<rhq:deployment-unit name="bundle.war" preinstallTarget="preinstall" postinstallTarget="postinstall" compliance="full">
  <rhq:file name="bundle.war" destinationFile="subdir1/bundle.war"/>
  <rhq:file name="bundle.war" destinationFile="subdir2/bundle.war"/>
  <rhq:file name="bundle.war" destinationDir="subdir3"/>
</rhq:deployment-unit>

Actual results:

file bundle.war appears only in subdir2/bundle.war, subdir1/bundle.war is completely ignored


Expected results: bundle.war should appear on all directories


Additional info: I admit, that I don't have valid usecase to deploy 1 file to several destinations, but at the same time, I wanted to use this approach for testing purpose and I did not find any restriction in docs disallowing it.