@Mojo(name="clean") public class CleanMojo extends AbstractLuteceWebappMojo
This attempts to clean a project's working directory of the files that were
generated at build-time. By default, it discovers and deletes the directories
configured in project.build.directory
,
project.build.outputDirectory
,
project.build.testOutputDirectory
, and
project.reporting.outputDirectory
.
Files outside the default may also be included in the deletion by configuring
the filesets
tag.
org.apache.maven.plugin.clean.Fileset.
artifacts, localConfDirectory, localRepository, metadataSource, remoteRepositories, resolver, testWebappDirectory
artifactCollector, ASSEMBLY_WEBAPP_EXCLUDES, ASSEMBLY_WEBAPP_INCLUDES, ASSEMBLY_WEBAPP_SITE_EXCLUDES, ASSEMBLY_WEBAPP_SITE_INCLUDES, classesDirectory, defaultConfDirectory, EXCLUDE_PATTERN_ASSEMBLY, EXCLUDE_PATTERN_BUSINESS, EXCLUDE_PATTERN_CLASSES, EXCLUDE_PATTERN_JAVA, EXCLUDE_PATTERN_LIB, EXCLUDE_PATTERN_PACKAGE_HTML, EXCLUDE_PATTERN_RESOURCES, EXCLUDE_PATTERN_SERVICE, EXCLUDE_PATTERN_SITE, EXCLUDE_PATTERN_SVN, EXCLUDE_PATTERN_TARGET, EXCLUDE_PATTERN_TEST, EXCLUDE_PATTERN_UTIL, EXCLUDE_PATTERN_UTILS, EXCLUDE_PATTERN_WEB, EXCLUDE_PATTERN_WEBAPP, EXCLUDE_PATTERN_WEBINF_TEST, INCLUDE_PATTERN_ALL, INCLUDE_PATTERN_RESOURCES, INCLUDE_PATTERN_SITE_USER, INCLUDE_PATTERN_SQL, INCLUDE_PATTERN_SRC, INCLUDE_PATTERN_WEBAPP, logger, LUTECE_CORE_PACKAGING, LUTECE_CORE_TYPE, LUTECE_DIRECTORY, LUTECE_PLUGIN_PACKAGING, LUTECE_PLUGIN_TYPE, LUTECE_SITE_PACKAGING, multiProjectArtifacts, multiProjectArtifactsCopied, outputDirectory, PACKAGE_CLASSES_EXCLUDES, PACKAGE_CLASSES_INCLUDES, PACKAGE_WEBAPP_EXCLUDES, PACKAGE_WEBAPP_INCLUDES, PACKAGE_WEBAPP_RESOURCES_EXCLUDES, PACKAGE_WEBAPP_RESOURCES_INCLUDE, PACKAGE_WEBAPP_SITE_EXCLUDES, PACKAGE_WEBAPP_SITE_INCLUDES, POM_PACKAGING, project, reactorProjects, siteDirectory, sqlDirectory, WEB_INF_DOC_XML_PATH, WEB_INF_SQL_PATH, WEBAPP_CLASSIFIER, webappSourceDirectory
Constructor and Description |
---|
CleanMojo() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(org.apache.maven.shared.model.fileset.FileSet fileset)
Adds a file-set to the list of file-sets to clean.
|
void |
execute()
Deletes file-sets in the following project build directory order:
(source) directory, output directory, test directory, report directory,
and then the additional file-sets.
|
protected void |
setReportDirectory(File newReportDirectory)
Sets the project build report directory.
|
protected void |
setTestOutputDirectory(File newTestOutputDirectory)
Sets the project build test output directory.
|
addToExplodedWebapp, copyThirdPartyJars, explodeConfigurationFiles, explodeWebapp, filterArtifacts, getRootProjectBuildDirectory, getRootProjectBuildDirectoryTarget
enableLogging
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- WhenMojo.execute()
protected void setTestOutputDirectory(File newTestOutputDirectory)
newTestOutputDirectory
- The project build test output directory to set.protected void setReportDirectory(File newReportDirectory)
newReportDirectory
- The project build report directory to set.public void addFileset(org.apache.maven.shared.model.fileset.FileSet fileset)
fileset
- the filesetCopyright © 2006–2015 Mairie de Paris. All rights reserved.