There is going to be a change being committed to master branch that
affects the way initial bundle deployments work. I wanted to make a note
of it here in case some folks tried to take advantage of this "buggy"
behavior :)
This is BZ
https://bugzilla.redhat.com/show_bug.cgi?id=784124
The problem:
When:
1) you do an INITIAL deployment of a bundle (not upgrading a bundle, but
on the first, initial deployment)
and
2) your bundle recipe's <rhq:deployment-unit> element's attribute
"manageRootDir" is set to true - which is the default if you don't
specify it - see:
http://rhq-project.org/display/JOPR2/Ant+Bundles#AntBundles-rhq%
3Adeploymentunit
and
3) you had files already existing in your bundle destination directory
what happened was we did NOT clear out those "in the way" files sitting
in the destination directory. This was bad behavior because the whole
purpose of this setup is to ensure RHQ fully manages that destination
directory. Files not in your bundle should not be hanging around after
the bundle is laid down.
What we will do now is remove those files from the destination directory
prior to doing the initial deployment (we will backup any deleted files
in case you want them back).
I'll be checking in this fix shortly. We have alot of unit tests in this
area, so I'm feeling pretty confident that nothing else "broke" with
this fix.