Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CoberturaMojoUtils |
|
| 1.0;1 |
1 | /* | |
2 | * #%L | |
3 | * Mojo's Maven plugin for Cobertura | |
4 | * %% | |
5 | * Copyright (C) 2005 - 2013 Codehaus | |
6 | * %% | |
7 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
8 | * you may not use this file except in compliance with the License. | |
9 | * You may obtain a copy of the License at | |
10 | * | |
11 | * http://www.apache.org/licenses/LICENSE-2.0 | |
12 | * | |
13 | * Unless required by applicable law or agreed to in writing, software | |
14 | * distributed under the License is distributed on an "AS IS" BASIS, | |
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 | * See the License for the specific language governing permissions and | |
17 | * limitations under the License. | |
18 | * #L% | |
19 | */ | |
20 | package org.codehaus.mojo.cobertura; | |
21 | ||
22 | import org.apache.maven.plugin.MojoExecution; | |
23 | ||
24 | import java.io.File; | |
25 | ||
26 | /** | |
27 | * Utility class which can be used by both build-plugins and reports | |
28 | * | |
29 | * @author Robert Scholte | |
30 | * @since 2.6 | |
31 | */ | |
32 | public class CoberturaMojoUtils | |
33 | { | |
34 | ||
35 | private CoberturaMojoUtils() | |
36 | 0 | { |
37 | 0 | } |
38 | ||
39 | /** | |
40 | * @param buildDirectory the buildDirectory | |
41 | * @param execution the mojo-execution | |
42 | * @return the data file | |
43 | */ | |
44 | public static File getDataFile( File buildDirectory, MojoExecution execution ) | |
45 | { | |
46 | 0 | return new File( buildDirectory, "cobertura/cobertura.ser" ); |
47 | } | |
48 | } |