]>
git.argeo.org Git - gpl/argeo-slc.git/blob - maven/maven-argeo-qooxdoo-plugin/src/main/java/org/argeo/slc/maven/plugins/qooxdoo/ResetMojo.java
1 package org
.argeo
.slc
.maven
.plugins
.qooxdoo
;
4 import java
.io
.IOException
;
6 import org
.apache
.maven
.plugin
.MojoExecutionException
;
7 import org
.apache
.maven
.plugin
.MojoFailureException
;
8 import org
.codehaus
.plexus
.util
.FileUtils
;
11 * Reset Qooxdoo context: removes SDK, clean cache, etc.
15 public class ResetMojo
extends AbstractQooxdooMojo
{
16 public void execute() throws MojoExecutionException
, MojoFailureException
{
17 if (getSdkDir().exists()) {
27 protected void delete(File dir
) throws MojoExecutionException
{
29 FileUtils
.deleteDirectory(dir
);
30 getLog().info("Deleted directory " + dir
);
31 } catch (IOException e
) {
32 throw new MojoExecutionException("Cannot delete " + dir
, e
);