Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.poshi.runner.logger;
import com.liferay.poshi.runner.PoshiRunnerContext;
import com.liferay.poshi.runner.PoshiRunnerGetterUtil;
import com.liferay.poshi.runner.PoshiRunnerStackTraceUtil;
import com.liferay.poshi.runner.elements.PoshiElement;
import com.liferay.poshi.runner.exception.PoshiRunnerLoggerException;
import com.liferay.poshi.runner.util.FileUtil;
import com.liferay.poshi.runner.util.GetterUtil;
import com.liferay.poshi.runner.util.PropsValues;
import com.liferay.poshi.runner.util.StringUtil;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import org.dom4j.Element;
/**
* @author Leslie Wong
*/
public class PoshiLogger {
public PoshiLogger(String testNamespacedClassCommandName) throws Exception {
_commandLogger = new CommandLogger();
_syntaxLogger = _getSyntaxLogger(testNamespacedClassCommandName);
}
public void createPoshiReport() throws IOException {
ClassLoader classLoader = PoshiLogger.class.getClassLoader();
URL url = classLoader.getResource("META-INF/resources/html/index.html");
String indexHTMLContent = FileUtil.read(url);
indexHTMLContent = StringUtil.replace(
indexHTMLContent,
"