|
||||||||||
| 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.AddLicenseFileMojo
public class AddLicenseFileMojo
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.InitState, 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 String |
encoding
Encoding a utiliser pour lire et ecrire les fichiers. |
protected 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 File |
licenseFile
Fichier de la licence du module. |
protected String |
licenseFilename
Repertoire de sortie des classes (classpath). |
protected String |
licenseName
Le type de license a appliquer. |
protected 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 interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AddLicenseFileMojo()
|
|
| Method Summary | |
|---|---|
protected void |
doAction()
|
String |
getEncoding()
|
String[] |
getExtraResolver()
|
License |
getLicense()
|
File |
getLicenseFile()
|
String |
getLicenseName()
|
File |
getOutputDirectory()
|
org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
hasClassPath()
|
protected void |
init()
|
boolean |
isForce()
|
boolean |
isKeepBackup()
|
boolean |
isVerbose()
|
void |
setEncoding(String encoding)
|
void |
setExtraResolver(String[] extraResolver)
|
void |
setForce(boolean force)
|
void |
setKeepBackup(boolean keepBackup)
|
void |
setLicense(License license)
|
void |
setLicenseFile(File licenseFile)
|
void |
setLicenseName(String licenseName)
|
void |
setOutputDirectory(File outputDirectory)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setVerbose(boolean verbose)
|
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkPackaging, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, 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
mvn helper:available-licenses -Ddetail
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 AddLicenseFileMojo()
| Method Detail |
|---|
protected boolean hasClassPath()
protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginException
protected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionpublic 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 | |||||||||