Support starting the maven build from a directory distinct from rhq root
directory
Bug 1062789 - Set quoting to enabled for newly created script server resources

Changed "quotingEnabled" attribute default value
Made ScriptDiscoveryComponent implement ResourceUpgradeFacet
Tracking upgraded resources with an hidden plugin config property ("quotingEnabledNeedsUpgrade")
Logging message when a Script Server component is started and "quotingEnabled" property is missing
Updated the "getConfiguredEscapeCharacter" method of the Script Server component class
[1128151] Error while upgrading from JON 3.1.2 to 3.3: [rhq.autoinstall.server.admin.password] must exist and be set to a valid string value
Ensure that the property gets a string value assigned during upgrade so that
the properties file passes validation. The dummy value is "ignored-on-upgrade",
the rhqadmin user will already exist in an upgraded server's DB.
[1078500] SEVERE error in Server.log file: JSF1051
This is generated due to, I think, EAP Bug 1141373.  The error does not
seem to negatively affect rhq/jon, so at this point I'm just filtering
out the message from the server log.
[1035420] OOB content labels get cut off
Analogous fixes for the measurement portlets
BZ 1141175 - make sure installer works even if the management bind address is set to 0.0.0.0
Related to work for 1138328. Wrap the new non-async uninv work for
storage node unlinking in a new Tx, like the other work done in that
method.  This may prevent an Oracle locking issue seen in test code cleanup
where we call both the sync and async uninventory in quick succession,
under potentially the same umbrella Tx.

(cherry picked from commit 1fc62b1044225f5cc48033de3783d19b1b047c9e)
Signed-off-by: Jay Shaughnessy <jshaughn@redhat.com>
[BZ 980084] Add stricter email validation regexp to alert-email serverplugin. Use the same regexp as with other EmailValidations
BZ 1142108 - fix NPE - in case someone deleted jboss.bind.address.management from rhq-server.properties
[1071379] CTRL+C doesn't shutdown server when running in console mode on Windows
Rhqctl was actually the program running in the foreground
when the 'rhqctl console --server' command was issued. The JSW and Server
processes were also running, but in the background.  When issuing a
CTRL-C it was actually rhqctl that was getting interrupted and killed. The
CTRL-C was not reaching the wrapper, or the server.  This got a little
infuriating because even if you manually killed the Server, the wrapper
would detect the "crasg" and then spin up a new server process :)  So, to
recover you needed to manually kill the wrapper.exe process, and then
manually kill the RHQ Server process.

With the fix we now launch a new cmd window for the Server (asynchronously,
via the Windows start command) which allows rhqctl to complete and exit.
The wrapper is now running in the foreground of the new window, and CTRL-C
is handled as expected by JSW (shutdown), as is double CTRL-C (immediate
shutdown).

Analogous work done for --storage.  Note that we don't support 'rhqctl
console --agent' and already direct users to run rhq-agent.bat directly.
[1064332] Horizontal size of the dashboard's left panel gets stuck after changing verticle panel size
When we removed the borders from the dash columns it made it very difficult
to grab anything for horizontal (i.e. width) resize.  There was only a
small, invisible area at the '+' shaped intersections of portlets.

Add back a 1px border, but make it transparent to keep the patternfly l+f.
Although the border can't be see, now when hovering over the border the
resize icon appears more readily.
[1043099] Add new autogroup chart to dashboard shows empty chart in dashboard
Disable the ability to add Autogroup or Autocluster metric graphs to the
dashboard.  It doesn't work because the portlets don't support them, and
these types of implicit groups should not be referenced outside of their
Tree navigation context. Despite being persisted they are maintained only
at click-time.
[BZ 1139267] - Undeploy Selected button on Storage Nodes page is disabled so it's not possible to remove second storage node - there was an error when checking if the storage node is available
Bug 1142356 - take snapshot failure exception for down storage

We now detect storage service availability prior running operation
Changing the descritption for a system setting from value 'If not enabled, the coregui will block users that are not assigned to any role. This applies for both LDAP and normal users.' to 'If enabled, logins are allowed for users not assigned to any role. This applies for both LDAP and normal users.'
Merge pull request #119 from ppalaga/RHQ-build-from-anywhere

Support starting the maven build from a directory distinct from rhq root

Merging this PR as the Java 7 dependency (on java.nio.file.Path) is only during the build time for the C* Groovy script where we already assume Java 7
[1073691] Table deadlock issue when processing content report due to missing index and very large transactions in ContentServerServiceImpl.mergeDiscoveredPackages
This is yet another legacy code spot subject to scalability and locking
issues. I've made a pass at making it more scalable and less likely to lock:
- No longer process an entire report under an umbrella Tx. Break up the
  work into more, smaller, Txs
- Reduce # of DB round trips
- Remove several calls to unindexed queries
  - Note, no new indexes have been added at this point. We are still likely
    doing one full-table scan of rhq_installed_package when getting the
    InstalledPackages for a Resource.  We may want to add an index on that FK.
  - Altered queries to use indexes
  - Removed unused queries from InstalledPackage and PackageVersion
- Added some inline doco to help future genrations
- Removed duplicated remote method decls from ContentManagerLocal
- Fixed an issue in ContentManagerBeanTest and re-enabled a bunch of tests
[BZ 1142984] Fix parsing of output from help --commands
Bug 885848 - Changing WAR/EAR deployment from exploded to unexploded (or vice versa) results in resource always being DOWN/Unavailable

Removed connection settings "deploymentName" attribute
Added connection settings "deploymentKey attribute (upgraded from "deploymentName")

We don't need to know if the deployment points to a "vfsfile:/" or "vfszip:/"

Now the profile service "deploymentName" is lazily loaded when the component is started or when it goes down because of NoSuchDeployment

Tested with EAP5.1.2 on WAR and EAR.
-> Deploy new package OK
-> Delete resource OK
-> Restart application OK
[BZ 1136751] If drift definition's interval is set to a lower value than agent's interval, show resource error