1/******************************************************************************* 2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 3 * This program and the accompanying materials are made available under 4 * the terms of the Eclipse Public License 2.0 which is available at 5 * http://www.eclipse.org/legal/epl-2.0 6 * 7 * SPDX-License-Identifier: EPL-2.0 8 * 9 * Contributors: 10 * Mirko Friedenhagen - initial API and implementation 11 * 12 *******************************************************************************/ 13import org.codehaus.plexus.util.*; 14 15File realBaseDir = new File(basedir, "../../../target/it-offline/build"); 16if (!new File(realBaseDir, "target/site/jacoco/index.html").exists()) { 17 throw new RuntimeException(); 18} 19if (new File(realBaseDir, "target/site/jacoco-it/index.html").exists()) { 20 throw new RuntimeException(); 21} 22if (!FileUtils.fileRead(new File(realBaseDir, "build.log")).contains(":restore-instrumented-classes")) { 23 throw new RuntimeException(); 24} 25