|
||||||||||
| 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.AddLicenseFilePlugin
public class AddLicenseFilePlugin
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 |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
copyToMETA_INF
Un flag pour faire une copie nommée dans META-INF (prefixe avec le nom de l'artifact). |
protected java.lang.String |
encoding
Encoding a utiliser pour lire et ecrire les fichiers. |
protected java.lang.String[] |
extraResolver
La baseURL d'un resolver de license supplementaire |
protected boolean |
force
Un flag pour forcer la generation. |
protected boolean |
keepBackup
Un flag pour conserver un backup des fichiers modifies. |
protected License |
license
|
protected java.io.File |
licenseFile
Fichier de la licence du module. |
protected java.lang.String |
licenseFilename
Repertoire de sortie des classes (classpath). |
protected java.lang.String |
licenseName
Le type de license a appliquer. |
protected java.io.File |
outputDirectory
Repertoire de sortie des sources. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected boolean |
verbose
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 | |
|---|---|
AddLicenseFilePlugin()
|
|
| Method Summary | |
|---|---|
protected void |
doAction()
|
java.lang.String |
getEncoding()
|
java.lang.String[] |
getExtraResolver()
|
License |
getLicense()
|
java.io.File |
getLicenseFile()
|
java.lang.String |
getLicenseName()
|
java.io.File |
getOutputDirectory()
|
org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
hasClassPath()
|
protected boolean |
init()
|
boolean |
isForce()
|
boolean |
isKeepBackup()
|
boolean |
isVerbose()
|
void |
setEncoding(java.lang.String encoding)
|
void |
setExtraResolver(java.lang.String[] extraResolver)
|
void |
setForce(boolean force)
|
void |
setKeepBackup(boolean keepBackup)
|
void |
setLicense(License license)
|
void |
setLicenseFile(java.io.File licenseFile)
|
void |
setLicenseName(java.lang.String licenseName)
|
void |
setOutputDirectory(java.io.File outputDirectory)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setVerbose(boolean verbose)
|
| 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 java.io.File licenseFile
protected java.lang.String licenseName
mvn helper:available-licenses -Ddetail
protected java.io.File outputDirectory
protected java.lang.String licenseFilename
protected java.lang.String encoding
protected boolean keepBackup
protected boolean force
protected boolean verbose
protected boolean copyToMETA_INF
protected java.lang.String[] extraResolver
protected License license
| Constructor Detail |
|---|
public AddLicenseFilePlugin()
| Method Detail |
|---|
protected boolean hasClassPath()
protected boolean init()
throws java.lang.Exception
init in class org.nuiton.plugin.AbstractPluginjava.lang.Exception
protected void doAction()
throws java.lang.Exception
doAction in class org.nuiton.plugin.AbstractPluginjava.lang.Exceptionpublic java.io.File getLicenseFile()
public java.lang.String getLicenseName()
public License getLicense()
public java.lang.String[] getExtraResolver()
public java.lang.String getEncoding()
public boolean isKeepBackup()
public boolean isForce()
public java.io.File getOutputDirectory()
public void setLicenseFile(java.io.File licenseFile)
public void setLicenseName(java.lang.String licenseName)
public void setExtraResolver(java.lang.String[] extraResolver)
public void setLicense(License license)
public void setEncoding(java.lang.String encoding)
public void setKeepBackup(boolean keepBackup)
public void setOutputDirectory(java.io.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 | |||||||||