jbuild.api.TaskPhase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbuild-api Show documentation
Show all versions of jbuild-api Show documentation
JBuild Java API for extending the jb tool.
The newest version!
package jbuild.api;
/**
* A jb build phase.
*
* All jb tasks are executed on a phase. A phase contains a group of tasks which
* may only run after tasks in the previous phase have finished executing,
* regardless of task dependencies.
*
* Built-in phases are {@code setup} (index 100), {@code build} (index 500),
* {@code publish} (index 501) and {@code tearDown} (index 1000).
*/
public @interface TaskPhase {
/**
* @return name of the phase (may be an existing one or a custom phase)
*/
String name();
/**
* The index of the phase. Phases are ordered according to this index.
*
* @return index of the phase (ignored if a phase with the provided name already exists).
*/
int index() default -1;
}