|
||||||||||
| 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.AbstractLicenseMojo
org.nuiton.license.plugin.AddLicenseFileMojo
update-project-license.
@Deprecated 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
Deprecated. Un flag pour faire une copie nommée dans META-INF (prefixe avec le nom de l'artifact). |
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. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AddLicenseFileMojo()
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
doAction()
Deprecated. |
String[] |
getExtraResolver()
Deprecated. |
License |
getLicense()
Deprecated. |
File |
getLicenseFile()
Deprecated. |
String |
getLicenseName()
Deprecated. |
File |
getOutputDirectory()
Deprecated. |
protected void |
init()
Deprecated. |
boolean |
isForce()
Deprecated. |
boolean |
isKeepBackup()
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. |
| Methods inherited from class org.nuiton.license.plugin.AbstractLicenseMojo |
|---|
createLicenseStore, getEncoding, getProject, hasClassPath, isVerbose, setEncoding, setProject, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, 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 File licenseFile
protected String licenseName
mvn helper:available-licenses -Ddetail
protected File outputDirectory
protected String licenseFilename
protected boolean keepBackup
protected boolean force
protected boolean copyToMETA_INF
protected String[] extraResolver
protected License license
| Constructor Detail |
|---|
public AddLicenseFileMojo()
| Method Detail |
|---|
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 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 setKeepBackup(boolean keepBackup)
public void setOutputDirectory(File outputDirectory)
public void setForce(boolean force)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||