View Javadoc

1   package org.codehaus.mojo.pde;
2   
3   /*
4    * Copyright 2006 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
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  }