@Mojo(name="clean", threadSafe=true) public class CleanMojo extends AbstractMojo
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.
Fileset
Constructor and Description |
---|
CleanMojo() |
Modifier and Type | Method and Description |
---|---|
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.
|
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
MojoExecutionException
- When a directory failed to get deleted.Mojo.execute()
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.