|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask
public class JReleaseInfoAntTask
This Task creates a new java source file with embedded informationen about the current build.
There will be some standard arguments like Version, BuildDate, as well as user defined properties.
The java class will provide final get methods to access these informations.
| Constructor Summary | |
|---|---|
JReleaseInfoAntTask()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredParameter(org.apache.tools.ant.types.Parameter prop)
Set method for any property using the ant type Parameter. |
void |
deleteJReleaseInfoFile()
Utility method to delete the JReleaseInfo file (for test purposes). |
void |
execute()
This is the standard execute() method from Task which must be overwritten. |
java.io.File |
getJReleaseInfoFile()
Utility method to check the JReleaseInfo file (for test purposes). |
void |
setBuildNumFile(java.lang.String fileName)
Set method for the fileName containing the buildnumber. |
void |
setBuildNumIncrement(int inc)
Set method for the buildNumber increment. |
void |
setBuildNumProperty(java.lang.String buildNumPropertyName)
Set the build number property name. |
void |
setClassName(java.lang.String className)
Set method for the classname of the JReleaseInfo file to be created. |
void |
setPackageName(java.lang.String packageName)
Set method for the package of the JReleaseInfo class to be created. |
void |
setProject(java.lang.String project)
Set method for the name of the project |
void |
setTargetDir(java.lang.String targetDir)
Set method for target directory where the JReleaseInfo file should be created. |
void |
setVersion(java.lang.String version)
Set method for the version-number. |
void |
setWithViewer(boolean isWithViewer)
Set method for isWithViewer flag |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JReleaseInfoAntTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - on wrong argument or IO errorpublic void addConfiguredParameter(org.apache.tools.ant.types.Parameter prop)
Note: if you define the type, then only use one of these (if you do not define the type, String will be used):
prop - Ant type Parameterpublic void setBuildNumProperty(java.lang.String buildNumPropertyName)
buildNumPropertyName - Name of property.public void setBuildNumFile(java.lang.String fileName)
fileName - Name of buildnumber filepublic void setBuildNumIncrement(int inc)
increment - intpublic void setClassName(java.lang.String className)
className - of the JReleaseInfopublic void setVersion(java.lang.String version)
version - infopublic void setProject(java.lang.String project)
version - infopublic void setPackageName(java.lang.String packageName)
packageName - of JReleaseInfo classpublic void setTargetDir(java.lang.String targetDir)
targetDir - of JReleaseInfo filepublic void deleteJReleaseInfoFile()
public java.io.File getJReleaseInfoFile()
public void setWithViewer(boolean isWithViewer)
isWithViewer - flag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||