public class VersionTask
extends Task
Modifier and Type | Field and Description |
---|---|
private int |
major
member variable to obatain the major version number.
|
private int |
minor
member variable to obatain the minor version number.
|
private int |
patch
member variable to obatain the patch-level number.
|
private String |
version
member variable to maintain the version string.
|
Constructor and Description |
---|
VersionTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the ant task, and populates the environmental properties
for the current project.
|
void |
init()
Initializes the member variables for an ant task.
|
void |
setMajor(int major)
Accessor to set the major version number.
|
void |
setMinor(int minor)
Accessor to set the minor version number.
|
void |
setPatch(int patch)
Accessor to set the patch-level number.
|
void |
setVersion(String version)
Accessor to set the version string.
|
private int major
org.griphyn.common.util.Version#MAJOR
private int minor
org.griphyn.common.util.Version#MINOR
private int patch
org.griphyn.common.util.Version#PLEVEL
private String version
org.griphyn.common.util.Version#toString()
public void setMajor(int major)
major
- is the new major version number.public void setMinor(int minor)
minor
- is the new minor version number.public void setPatch(int patch)
patch
- is the new patch-level number.public void setVersion(String version)
version
- is the version string.public void init() throws BuildException
BuildException
- if something goes bump with ant.org.griphyn.common.util.Version
public void execute() throws BuildException
BuildException
- if something goes bump with ant.Copyright © 2011 The University of Southern California. All Rights Reserved.