|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.license.plugin.LicensePlugin
@Deprecated public class LicensePlugin
Le goal pour ajouter le fichier LICENSE.txt dans le classpath (et le generer s'il n'existe pas).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
copyToMETA_INF
Deprecated. Un flag pour faire une copie nommée dans META-INF (prefixe avec le nom de l'artifact). |
protected String |
encoding
Deprecated. Encoding a utiliser pour lire et ecrire les fichiers. |
protected String[] |
extraResolver
Deprecated. La baseURL d'un resolver de license supplementaire |
protected boolean |
force
Deprecated. Un flag pour forcer la generation. |
protected boolean |
keepBackup
Deprecated. Un flag pour conserver un backup des fichiers modifies. |
protected License |
license
Deprecated. |
protected File |
licenseFile
Deprecated. Fichier de la licence du module. |
protected String |
licenseFilename
Deprecated. Repertoire de sortie des classes (classpath). |
protected String |
licenseName
Deprecated. Le type de license a appliquer. |
protected File |
outputDirectory
Deprecated. Repertoire de sortie des sources. |
protected org.apache.maven.project.MavenProject |
project
Deprecated. Dependance du projet. |
protected boolean |
verbose
Deprecated. Un flag pour activer le mode verbeux. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
LicensePlugin()
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
doAction()
Deprecated. Do plugin action. |
String |
getEncoding()
Deprecated. |
String[] |
getExtraResolver()
Deprecated. |
License |
getLicense()
Deprecated. |
File |
getLicenseFile()
Deprecated. |
String |
getLicenseName()
Deprecated. |
File |
getOutputDirectory()
Deprecated. |
org.apache.maven.project.MavenProject |
getProject()
Deprecated. |
protected boolean |
hasClassPath()
Deprecated. |
protected boolean |
init()
Deprecated. Method to initialize the mojo before doing any concrete actions. |
boolean |
isForce()
Deprecated. |
boolean |
isKeepBackup()
Deprecated. |
boolean |
isVerbose()
Deprecated. |
void |
setEncoding(String encoding)
Deprecated. |
void |
setExtraResolver(String[] extraResolver)
Deprecated. |
void |
setForce(boolean force)
Deprecated. |
void |
setKeepBackup(boolean keepBackup)
Deprecated. |
void |
setLicense(License license)
Deprecated. |
void |
setLicenseFile(File licenseFile)
Deprecated. |
void |
setLicenseName(String licenseName)
Deprecated. |
void |
setOutputDirectory(File outputDirectory)
Deprecated. |
void |
setProject(org.apache.maven.project.MavenProject project)
Deprecated. |
void |
setVerbose(boolean verbose)
Deprecated. |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, checkPackaging, checkResource, copyFile, execute, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, writeFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected File licenseFile
protected String licenseName
protected File outputDirectory
protected String licenseFilename
protected String encoding
protected boolean keepBackup
protected boolean force
protected boolean verbose
protected boolean copyToMETA_INF
protected String[] extraResolver
protected License license
| Constructor Detail |
|---|
public LicensePlugin()
| Method Detail |
|---|
protected boolean hasClassPath()
protected boolean init()
throws Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPlugintrue if mojo is well initialize and something has
to be done in the AbstractPlugin.doAction() method, false
otherwise.
Exception - if any
protected void doAction()
throws Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginException - if anypublic File getLicenseFile()
public String getLicenseName()
public License getLicense()
public String[] getExtraResolver()
public String getEncoding()
public boolean isKeepBackup()
public boolean isForce()
public File getOutputDirectory()
public void setLicenseFile(File licenseFile)
public void setLicenseName(String licenseName)
public void setExtraResolver(String[] extraResolver)
public void setLicense(License license)
public void setEncoding(String encoding)
public void setKeepBackup(boolean keepBackup)
public void setOutputDirectory(File outputDirectory)
public void setForce(boolean force)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||