/*
 * Copyright to the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.rioproject.util;

import org.rioproject.RioVersion;

/**
 * Produces a ascii banner
 */
public class BannerProviderImpl implements BannerProvider {

    public String getBanner(String service) {
        StringBuilder banner = new StringBuilder();
        banner.append("\n");
        banner.append("____ _ ____\n");
        banner.append("|__/ | |  |   ").append(service).append("\n");
        banner.append("|  \\ | |__|   Version: ").append(RioVersion.VERSION).append(", Build: ").append(RioVersion.getBuildNumber()).append("\n");
        banner.append("\n");
        banner.append("Rio Home: ").append(System.getProperty("RIO_HOME"));
        return banner.toString();
    }
}

@@ -1257,16 +1257,318 @@
 OME%22));%0A
+        banner.append(%22%5Cn%22);%0A        banner.append(%22Java version: %22).append(System.getProperty(%22java.version%22));%0A        banner.append(%22, vendor: %22).append(System.getProperty(%22java.vm.vendor%22));%0A        banner.append(%22%5Cn%22);%0A        banner.append(%22Java home: %22).append(System.getProperty(%22java.home%22));%0A
         

Add details on Java version, vendor and home when banner is displayed