Bug 1026458 - Support multiple use of rhq:file with same source file name
Summary: Support multiple use of rhq:file with same source file name
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-04 17:31 UTC by Libor Zoubek
Modified: 2022-03-31 04:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.