Bug 665508 - rhq:url-archive, rhq:archive should support destinationFile/destinationDir
Summary: rhq:url-archive, rhq:archive should support destinationFile/destinationDir
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Provisioning
Version: 4.0.0.B02
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: RHQ 4.11
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: JON3-55
TreeView+ depends on / blocked
 
Reported: 2010-12-24 05:58 UTC by John Mazzitelli
Modified: 2018-12-04 14:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: JON3-55 (view as bug list)
Environment:
Last Closed: 2014-07-21 10:14:07 UTC
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2010-12-24 05:58:11 UTC
rhq:file and rhq:url-file each support the ability to indicate where the file should be copied on the destination machine.

rhq:archive and rhq:url-archive does not support those attributes. However, it would be nice to be able to tell where you want the archive to be stored. Note this probably only makes sense when exploded="false" since the zip file doesn't exist if its exploded.

<rhq:archive name="test.zip" exploded="false" destinationDir="subdir" ...

would mean the test.zip would get copied in ${rhq.deploy.dir}/subdir.

<rhq:url-archive url="http://server/files/test.zip" exploded="false" destinationDir="subdir" ...

would mean the test.zip would be downloaded from that URL and stored in ${rhq.deploy.dir}/subdir. Today, you have no choice but to have the downloaded file stored directly in ${rhq.deploy.dir}.

Comment 1 Jay Shaughnessy 2014-04-25 19:37:34 UTC
After some discussion decided that only the "destinationDir" attribute should be supported and not to support renaming archives.  Also, currently supporting this only when exploded=false.  Wiki updated: 

 https://docs.jboss.org/author/display/RHQ/Ant+Bundles#AntBundles-rhq%3Aarchive


master commit e26efc5c109e10da6418defa48b565c9b0c6097c
Author: Jay Shaughnessy <jshaughn>
Date:   Fri Apr 25 15:34:22 2014 -0400

 Add "destinationDir" attribute for the archive targets.  Note that it can only
 be used in conjunction with "exploded=false".

Comment 2 Jay Shaughnessy 2014-04-29 15:47:36 UTC
master commit 074e649afda89f314679a0c65676aa41f80f420b
Author: Jay Shaughnessy <jshaughn>
Date:   Tue Apr 29 11:44:04 2014 -0400

- Fix API back-compat issues in DeploymentData constructors
- Fix ambiguous constructors issue in DeploymentData when using various null
  params
- Fix some related jdoc
- Update our code base to not use deprecated calls in DeploymentProperties
  and DeploymentData.

Comment 3 Heiko W. Rupp 2014-07-21 10:14:07 UTC
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out.

If you find an issue with those, please open a new BZ, linking to the old one.


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