Provide the IBM ibm-web-bnd.xmi file in WEB-INF to ease automated deployment on WebSphere

Details

Description

Deploying Hudson on WAS could be made easier and faster and could allow to reuse
the scripts provided with WAS (I have in mind the script library provided with
WAS 7.0 in <WAS_INSTALL_DIR>/scriptLibraries) with no modification, by simply
adding the ibm-web-bnd.xmi file in WEB-INF/ (main/war/resources/WEB-INF).

Here is the whole content of the file:

<?xml version="1.0" encoding="UTF-8"?>
<!--
The MIT License

Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

<!--
This file simply sets the virtual host on which to deploy the Web app to be
able to use WebSphere's provided deployment script as-is.
E.g., on WAS 7.0 and using jython:
AdminApplication.installWarFile('hudson','/blabla/hudson.war','localhostNode01','server1','hudson')
-->
<webappbnd:WebAppBinding
xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:webappbnd="webappbnd.xmi"
virtualHostName="default_host">
</webappbnd:WebAppBinding>