com.maxifier.mxcache.mavenplugin.InstrumentatorMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-maven-plugin Show documentation
Show all versions of mxcache-maven-plugin Show documentation
MxCache instrumentation plugin for maven
The newest version!
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.mavenplugin;
import com.maxifier.mxcache.PublicAPI;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
/**
* Performs mxcache instrumentation of classes.
*
* @author Alexander Kochurov ([email protected])
*/
@SuppressWarnings ({ "JavaDoc" })
@PublicAPI
@Mojo(name = "instrument", defaultPhase = LifecyclePhase.PROCESS_CLASSES, threadSafe = true)
public class InstrumentatorMojo extends AbstractInstrumentatorMojo {
/**
* The directory for compiled classes.
*/
@SuppressWarnings ({ "UnusedDeclaration" })
@Parameter(name = "outputDirectory", defaultValue = "${project.build.outputDirectory}", required = true, readonly = true)
private File outputDirectory;
@Override
public void execute() throws MojoExecutionException {
instrumentClasses(outputDirectory);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy