Evgeny Mandrikov | b5d4e9b | 2011-06-26 04:30:13 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2009, 2011 Mountainminds GmbH & Co. KG and Contributors |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * Evgeny Mandrikov - initial API and implementation |
| 10 | * |
| 11 | *******************************************************************************/ |
| 12 | import java.io.*; |
| 13 | |
Evgeny Mandrikov | 8bce48c | 2011-07-01 10:52:43 +0000 | [diff] [blame] | 14 | File dump2 = new File( basedir, "skip-child/target/jacoco.exec" ); |
| 15 | if ( dump2.isFile() ) { |
| 16 | throw new RuntimeException( "Should not be executed for module 'skip-child', but dump found : " + dump2 ); |
| 17 | } |
| 18 | |
Evgeny Mandrikov | 16a2a0c | 2011-06-26 23:17:08 +0000 | [diff] [blame] | 19 | File file = new File( basedir, "child/target/jacoco.exec" ); |
Evgeny Mandrikov | b5d4e9b | 2011-06-26 04:30:13 +0000 | [diff] [blame] | 20 | if ( !file.isFile() ) |
| 21 | { |
| 22 | throw new FileNotFoundException( "Could not find generated dump: " + file ); |
| 23 | } |
| 24 | |
Evgeny Mandrikov | 16a2a0c | 2011-06-26 23:17:08 +0000 | [diff] [blame] | 25 | File xmlReport = new File( basedir, "child/target/site/jacoco/jacoco.xml" ); |
Evgeny Mandrikov | b5d4e9b | 2011-06-26 04:30:13 +0000 | [diff] [blame] | 26 | if ( !xmlReport.isFile() ) |
| 27 | { |
| 28 | throw new FileNotFoundException( "Could not find generated XML report: " + xmlReport ); |
| 29 | } |
| 30 | |
Evgeny Mandrikov | 16a2a0c | 2011-06-26 23:17:08 +0000 | [diff] [blame] | 31 | File csvReport = new File( basedir, "child/target/site/jacoco/jacoco.csv" ); |
Evgeny Mandrikov | b5d4e9b | 2011-06-26 04:30:13 +0000 | [diff] [blame] | 32 | if ( !csvReport.isFile() ) |
| 33 | { |
| 34 | throw new FileNotFoundException( "Could not find generated CSV report: " + csvReport ); |
| 35 | } |
| 36 | |
Evgeny Mandrikov | 16a2a0c | 2011-06-26 23:17:08 +0000 | [diff] [blame] | 37 | File htmlReport = new File( basedir, "child/target/site/jacoco/index.html" ); |
Evgeny Mandrikov | b5d4e9b | 2011-06-26 04:30:13 +0000 | [diff] [blame] | 38 | if ( !htmlReport.isFile() ) |
| 39 | { |
| 40 | throw new FileNotFoundException( "Could not find generated HTML report: " + htmlReport ); |
| 41 | } |