Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DirectoryMojo |
|
| 0.0;0 |
1 | package org.apache.maven.plugin.assembly.mojos; | |
2 | ||
3 | /* | |
4 | * Licensed to the Apache Software Foundation (ASF) under one | |
5 | * or more contributor license agreements. See the NOTICE file | |
6 | * distributed with this work for additional information | |
7 | * regarding copyright ownership. The ASF licenses this file | |
8 | * to you under the Apache License, Version 2.0 (the | |
9 | * "License"); you may not use this file except in compliance | |
10 | * with the License. You may obtain a copy of the License at | |
11 | * | |
12 | * http://www.apache.org/licenses/LICENSE-2.0 | |
13 | * | |
14 | * Unless required by applicable law or agreed to in writing, | |
15 | * software distributed under the License is distributed on an | |
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
17 | * KIND, either express or implied. See the License for the | |
18 | * specific language governing permissions and limitations | |
19 | * under the License. | |
20 | */ | |
21 | ||
22 | import org.apache.maven.project.MavenProject; | |
23 | ||
24 | /** | |
25 | * Like the <code>assembly:attached</code> goal, assemble an application bundle or distribution using an assembly | |
26 | * descriptor from the command line. This goal will force Maven to build all included POMs up to the | |
27 | * <code>package</code> phase BEFORE the assembly is processed. This goal differs from <code>assembly:assembly</code> in | |
28 | * that it ignores the <formats/> section of the assembly descriptor, and forces the assembly to be created as a | |
29 | * directory in the project's build-output directory (usually <code>./target</code>). <br/> | |
30 | * | |
31 | * This goal is also functionally equivalent to using the <code>assembly:assembly</code> goal in conjunction with the | |
32 | * <code>dir</code> assembly format. <br/> | |
33 | * | |
34 | * <b>NOTE:</b> This goal should ONLY be run from the command line, and if building a multimodule project it should be | |
35 | * used from the root POM. Use the <code>assembly:directory-single</code> goal for binding your assembly to the | |
36 | * lifecycle. | |
37 | * | |
38 | * @author <a href="mailto:jdcasey@apache.org">John Casey</a> | |
39 | * @version $Id: DirectoryMojo.java 999625 2010-09-21 20:40:39Z jdcasey $ | |
40 | * @goal directory | |
41 | * @execute phase="package" | |
42 | * @aggregator | |
43 | * @inheritByDefault false | |
44 | * @deprecated Use assembly:single and an assembly with format == dir instead! This mojo is redundant. | |
45 | */ | |
46 | @Deprecated | |
47 | 0 | public class DirectoryMojo |
48 | extends AbstractDirectoryMojo | |
49 | { | |
50 | /** | |
51 | * Get the executed project from the forked lifecycle. | |
52 | * | |
53 | * @parameter expression="${executedProject}" | |
54 | */ | |
55 | private MavenProject executedProject; | |
56 | ||
57 | @Override | |
58 | public MavenProject getProject() | |
59 | { | |
60 | 0 | return executedProject; |
61 | } | |
62 | } |