|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTask
VersionTask
public class VersionTask
This class exists only for compilation-with-ant purpose. It extends the ant property to report the chosen version number to the compilation process.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
VersionTask()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int major
org.griphyn.common.util.Version#MAJORprivate int minor
org.griphyn.common.util.Version#MINORprivate int patch
org.griphyn.common.util.Version#PLEVELprivate String version
org.griphyn.common.util.Version#toString()| Constructor Detail |
|---|
public VersionTask()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||