Package org.codehaus.mojo.buildhelper
Class CpuCountMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
-
- org.codehaus.mojo.buildhelper.CpuCountMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="cpu-count", defaultPhase=INITIALIZE, threadSafe=true) public class CpuCountMojo extends AbstractDefinePropertyMojo
Retrieve number of CPUs with project factor, and place it under a configurable project property- Since:
- 1.9
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
cpuCount
The name of the property in which to store the CPU count.private float
factor
Projection factor.-
Fields inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
project
-
-
Constructor Summary
Constructors Constructor Description CpuCountMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
defineProperty, getProject
-
-