org.nuiton.license.plugin
Class LicensePlugin

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.license.plugin.LicensePlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, Plugin

Deprecated. since 1.0.3, move all license stuff in maven-license-plugin (removed in 1.1.0)

@Deprecated
public class LicensePlugin
extends AbstractPlugin

Le goal pour ajouter le fichier LICENSE.txt dans le classpath (et le generer s'il n'existe pas).

Author:
chemit
Is defined by the goal name:
add-license
Is bound to the specified phase of the standard build lifecycle:
generate-resources
Requires the dependencies in this specified scope:
compile
Requires a Maven project to run:
true

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

project

protected org.apache.maven.project.MavenProject project
Deprecated. 
Dependance du projet.

Since:
1.0.0
Is defined by:
default-value:
${project}
Is required.

licenseFile

protected File licenseFile
Deprecated. 
Fichier de la licence du module.

Since:
1.0.0
Is defined by:
expression:
${helper.licenceFile}
default-value:
${basedir}/LICENSE.txt
Is readonly.
Is required.

licenseName

protected String licenseName
Deprecated. 
Le type de license a appliquer.

Since:
1.0.0
Is defined by:
expression:
${license.licenseName}
Is required.

outputDirectory

protected File outputDirectory
Deprecated. 
Repertoire de sortie des sources.

Since:
1.0.0
Is defined by:
expression:
${helper.outputDirectory}
default-value:
target/generated-sources/resources
Is required.

licenseFilename

protected String licenseFilename
Deprecated. 
Repertoire de sortie des classes (classpath).

Since:
1.0.0
Is defined by:
expression:
${helper.licenceFilename}
default-value:

encoding

protected String encoding
Deprecated. 
Encoding a utiliser pour lire et ecrire les fichiers.

Since:
1.0.0
Is defined by:
expression:
${helper.encoding}
default-value:
${project.build.sourceEncoding}
Is required.

keepBackup

protected boolean keepBackup
Deprecated. 
Un flag pour conserver un backup des fichiers modifies.

Since:
1.0.0
Is defined by:
expression:
${helper.keepBackup}
default-value:
false

force

protected boolean force
Deprecated. 
Un flag pour forcer la generation.

Since:
1.0.0
Is defined by:
expression:
${helper.force}
default-value:
false

verbose

protected boolean verbose
Deprecated. 
Un flag pour activer le mode verbeux.

Since:
1.0.0
Is defined by:
expression:
${helper.verbose}
default-value:
${maven.verbose}

copyToMETA_INF

protected boolean copyToMETA_INF
Deprecated. 
Un flag pour faire une copie nommée dans META-INF (prefixe avec le nom de l'artifact). Cette option n'est utilisable que sur des modules avec un class-path (pas pour un pom)

Since:
1.0.0
Is defined by:
expression:
${helper.copyToMETA_INF}
default-value:
false

extraResolver

protected String[] extraResolver
Deprecated. 
La baseURL d'un resolver de license supplementaire

Since:
1.0.0
Is defined by:
expression:
${helper.extraResolver}

license

protected License license
Deprecated. 
Constructor Detail

LicensePlugin

public LicensePlugin()
Deprecated. 
Method Detail

hasClassPath

protected boolean hasClassPath()
Deprecated. 

init

protected boolean init()
                throws Exception
Deprecated. 
Description copied from class: AbstractPlugin
Method to initialize the mojo before doing any concrete actions.

Note: The method is invoked before the AbstractPlugin.doAction() method.

Specified by:
init in class AbstractPlugin
Returns:
true if mojo is well initialize and something has to be done in the AbstractPlugin.doAction() method, false otherwise.
Throws:
Exception - if any

doAction

protected void doAction()
                 throws Exception
Deprecated. 
Description copied from class: AbstractPlugin
Do plugin action.

The method AbstractPlugin.execute() invoke this method only and only if :

Specified by:
doAction in class AbstractPlugin
Throws:
Exception - if any

getLicenseFile

public File getLicenseFile()
Deprecated. 

getLicenseName

public String getLicenseName()
Deprecated. 

getLicense

public License getLicense()
Deprecated. 

getExtraResolver

public String[] getExtraResolver()
Deprecated. 

getEncoding

public String getEncoding()
Deprecated. 

isKeepBackup

public boolean isKeepBackup()
Deprecated. 

isForce

public boolean isForce()
Deprecated. 

getOutputDirectory

public File getOutputDirectory()
Deprecated. 

setLicenseFile

public void setLicenseFile(File licenseFile)
Deprecated. 

setLicenseName

public void setLicenseName(String licenseName)
Deprecated. 

setExtraResolver

public void setExtraResolver(String[] extraResolver)
Deprecated. 

setLicense

public void setLicense(License license)
Deprecated. 

setEncoding

public void setEncoding(String encoding)
Deprecated. 

setKeepBackup

public void setKeepBackup(boolean keepBackup)
Deprecated. 

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
Deprecated. 

setForce

public void setForce(boolean force)
Deprecated. 

isVerbose

public boolean isVerbose()
Deprecated. 

setVerbose

public void setVerbose(boolean verbose)
Deprecated. 

getProject

public org.apache.maven.project.MavenProject getProject()
Deprecated. 

setProject

public void setProject(org.apache.maven.project.MavenProject project)
Deprecated. 


Copyright © 2009 CodeLutin. All Rights Reserved.