KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > tools > jbiplugin > JBIAbstractMojo


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: AntTaskJBI.java 09:01:14 ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.tools.jbiplugin;
23
24 import java.io.File JavaDoc;
25
26 import org.apache.maven.artifact.repository.ArtifactRepository;
27 import org.apache.maven.artifact.resolver.ArtifactResolver;
28 import org.apache.maven.plugin.AbstractMojo;
29 import org.apache.maven.project.MavenProject;
30
31 /**
32  * This class is used to give the main configuration parameters of
33  * all JBI goals
34  *
35  * @author cdeneux - Capgemini Sud
36  */

37 public abstract class JBIAbstractMojo extends AbstractMojo {
38
39     /**
40      * @component
41      */

42     protected ArtifactResolver artifactResolver;
43     
44     /**
45      * JBI Name
46      *
47      * @parameter expression="${project.artifactId}-${project.version}"
48      * @editable true
49      * @required
50      * @description Name of the generated jbi archive
51      */

52     protected String JavaDoc jbiName;
53
54     /**
55      * Verbose
56      *
57      * @parameter expression="false"
58      * @editable true
59      * @required
60      * @description Boolean to switch to verbose mode
61      */

62     protected boolean verbose;
63
64     /**
65      * Local maven repository.
66      *
67      * @parameter expression="${localRepository}"
68      * @required
69      * @readonly
70      */

71     protected ArtifactRepository localRepository;
72
73     /**
74      * Output directory
75      *
76      * @parameter expression="${project.build.directory}"
77      * @required
78      */

79     protected File JavaDoc outputDirectory;
80
81     /**
82      * The Maven Project.
83      *
84      * @parameter expression="${project}"
85      * @required
86      * @readonly
87      */

88     protected MavenProject project;
89
90 }
91
Popular Tags