blob: 99164af75f799f6e98e093fa1965f182b14500e5 [file] [log] [blame]
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +00001/*******************************************************************************
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 *******************************************************************************/
12import java.io.*;
13
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000014File file = new File( basedir, "child/target/jacoco.exec" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000015if ( !file.isFile() )
16{
17 throw new FileNotFoundException( "Could not find generated dump: " + file );
18}
19
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000020File xmlReport = new File( basedir, "child/target/site/jacoco/jacoco.xml" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000021if ( !xmlReport.isFile() )
22{
23 throw new FileNotFoundException( "Could not find generated XML report: " + xmlReport );
24}
25
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000026File csvReport = new File( basedir, "child/target/site/jacoco/jacoco.csv" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000027if ( !csvReport.isFile() )
28{
29 throw new FileNotFoundException( "Could not find generated CSV report: " + csvReport );
30}
31
Evgeny Mandrikov16a2a0c2011-06-26 23:17:08 +000032File htmlReport = new File( basedir, "child/target/site/jacoco/index.html" );
Evgeny Mandrikovb5d4e9b2011-06-26 04:30:13 +000033if ( !htmlReport.isFile() )
34{
35 throw new FileNotFoundException( "Could not find generated HTML report: " + htmlReport );
36}