1/******************************************************************************* 2 * Copyright (c) 2009, 2015 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 * Marc R. Hoffmann - initial API and implementation 10 * 11 *******************************************************************************/ 12package org.jacoco.ant; 13 14import java.io.File; 15 16import org.jacoco.core.data.ExecutionData; 17import org.jacoco.core.tools.ExecFileLoader; 18 19/** 20 * Test utility to dump class names from exec file. 21 */ 22public class DumpExecClassNames { 23 24 public static void main(String[] args) throws Exception { 25 final ExecFileLoader loader = new ExecFileLoader(); 26 for (String f : args) { 27 loader.load(new File(f)); 28 } 29 for (ExecutionData d : loader.getExecutionDataStore().getContents()) { 30 System.out.println(d.getName()); 31 } 32 } 33 34} 35