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 * Evgeny Mandrikov - initial API and implementation 10 * Kyle Lieber - implementation of CheckMojo 11 * 12 *******************************************************************************/ 13 package org.jacoco.maven; 14 15 import java.io.File; 16 17 /** 18 * Same as <code>prepare-agent</code>, but provides default values suitable for 19 * integration-tests: 20 * <ul> 21 * <li>bound to <code>pre-integration-test</code> phase</li> 22 * <li>different <code>destFile</code></li> 23 * </ul> 24 * 25 * @phase pre-integration-test 26 * @goal prepare-agent-integration 27 * @requiresProject true 28 * @requiresDependencyResolution runtime 29 * @threadSafe 30 * @since 0.6.4 31 */ 32 public class AgentITMojo extends AbstractAgentMojo { 33 34 /** 35 * Path to the output file for execution data. 36 * 37 * @parameter property="jacoco.destFile" 38 * default-value="${project.build.directory}/jacoco-it.exec" 39 */ 40 private File destFile; 41 42 /** 43 * @return the destFile 44 */ 45 @Override 46 File getDestFile() { 47 return destFile; 48 } 49 50 } 51