|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.ant.taskdefs.Version
public class Version
Representa uma versão contida no arquivo de propriedades
| Constructor Summary | |
|---|---|
Version(String versionPropertiesFile)
Inicializa o controle de versão do arquivo passado como parâmetro |
|
| Method Summary | |
|---|---|
String |
getCurrentRelease()
|
String |
getCurrentVersion()
|
String |
getFormattedVersion(boolean showReleaseVersion)
|
String |
incMajorVersion()
|
String |
incMinorVersion()
|
String |
incReleaseVersion()
|
boolean |
parse(String newVersion)
Atualiza a versão para a passada por parâmetro |
void |
updateProperties()
Atualiza o arquivo de versão de acordo com o estado atual |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Version(String versionPropertiesFile)
throws org.apache.tools.ant.BuildException
versionPropertiesFile -
org.apache.tools.ant.BuildException| Method Detail |
|---|
public String getCurrentVersion()
public String getCurrentRelease()
public void updateProperties()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic String incMajorVersion()
public String incMinorVersion()
public String incReleaseVersion()
public String getFormattedVersion(boolean showReleaseVersion)
public boolean parse(String newVersion)
newVersion - A nova versão a ser carregada, ex 2.1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||