tecgraf.javautils.ant.taskdefs
Class Promote

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by tecgraf.javautils.ant.taskdefs.Promote
All Implemented Interfaces:
Cloneable

public class Promote
extends org.apache.tools.ant.Task

Ant task que executa a promoção da versão mantida no arquivo version.properties. Exemplo de promoção de major version: O atributo update pode ter os valores [major|minor|release]-version. A propriedade out é criada com a string representando a versão promovida. O atributo showreleaseversion indica se a versão de release deve ser mostrada (1.0.0 ao invés de 1.0 apenas)

Author:
Tecgraf/PUC-Rio

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Promote()
           
 
Method Summary
 void execute()
           
 void setAddproperty(String addproperty)
           
 void setShowreleaseversion(boolean showreleaseversion)
           
 void setUpdate(String update)
           
 void setVersionfile(String versionFile)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Promote

public Promote()
Method Detail

setAddproperty

public void setAddproperty(String addproperty)
Parameters:
addproperty - nome da propriedade a ser criada com a versão de saída

setVersionfile

public final void setVersionfile(String versionFile)
Parameters:
versionFile - o arquivo de versão

setShowreleaseversion

public final void setShowreleaseversion(boolean showreleaseversion)
Parameters:
showreleaseversion - true para exibir versão de release

setUpdate

public final void setUpdate(String update)
Parameters:
update - the update to set

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.