com.opitzconsulting.orcas.maven.OrcasCleanLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orcas-maven-plugin Show documentation
Show all versions of orcas-maven-plugin Show documentation
orcas maven plugin for orcas usage with maven
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