All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opitzconsulting.orcas.maven.OrcasCleanLog Maven / Gradle / Ivy

There is a newer version: 7.7.1
Show newest version
package com.opitzconsulting.orcas.maven;

import java.io.File;

import org.apache.maven.plugins.annotations.Mojo;

import de.opitzconsulting.orcas.diff.ParametersCall;
import de.opitzconsulting.orcas.diff.Orcas;

/**
 * Cleans the spoolfolder.
 */
@Mojo( name = "cleanLog" )
public class OrcasCleanLog extends BaseOrcasMojo
{
  @Override
  protected void executeWithParameters( ParametersCall pParameters )
  {
    if( pParameters.getSpoolfolder().length() != 0 && new File( pParameters.getSpoolfolder() ).exists() )
    {
      Orcas.deleteRecursive( new File( pParameters.getSpoolfolder() ) );
    }
  }

  @Override
  protected String getLogname()
  {
    return "clean-log";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy