1 package org.codehaus.mojo.pde;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.plugin.MojoExecutionException;
21 import org.apache.maven.plugin.MojoFailureException;
22
23 /**
24 * Build PDE artifact via this plugin's custom build lifecycle. The output of this build is
25 * deployable.
26 *
27 * @version $Id:$
28 * @goal ext
29 * @requiresProject true
30 * @aggregator
31 * @author dtran@gmail.com
32 */
33
34 public class EclipsePDEExtMojo
35 extends EclipsePDEMojo
36 {
37
38 /**
39 * Do the work
40 *
41 * @throws MojoExecutionException build failures.
42 * @throws MojoFailureException build failures.
43 *
44 */
45 public void execute()
46 throws MojoExecutionException, MojoFailureException
47 {
48 super.execute();
49
50 Artifact artifact = this.project.getArtifact();
51
52 artifact.setFile( this.locateAntOutputFile() );
53 }
54
55 }