File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\maven-plugin\src\main\java\hudson\maven\MavenReportInfo.java.html

1 /*
2 * The MIT License
3 *
4 * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24 package hudson.maven;
25
26 import org.apache.maven.reporting.MavenReport;
27 import org.apache.maven.plugin.MojoExecution;
28 import org.apache.maven.plugin.Mojo;
29 import org.codehaus.plexus.configuration.PlexusConfiguration;
30 import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator;
31
32 /**
33 * Information about {@link MavenReport} that was executed.
34 *
35 * <p>
36 * Since {@link MavenReport} is always a {@link Mojo} (even though the interface
37 * inheritance is not explicitly defined), this class extends from {@link MojoInfo}.
38 *
39 * <p>
40 * This object provides additional convenience methods that only make sense for {@link MavenReport}.
41 *
42 * @author Kohsuke Kawaguchi
43 * @see MojoInfo
44 */
45 public final class MavenReportInfo extends MojoInfo {
46 /**
47 * The fully-populated {@link MavenReport} object. The same object as
48 * {@link #mojo} but in the right type. Never null.
49 */
50 public final MavenReport report;
51
52 public MavenReportInfo(MojoExecution mojoExecution, MavenReport mojo, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator,
53 long mojoStartTime) {
54 super(mojoExecution, (Mojo)mojo, configuration, expressionEvaluator,mojoStartTime);
55 this.report = mojo;
56 }
57 }
58