|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task ch.oscg.jreleaseinfo.anttask.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.
Field Summary | |
protected BuildNumberHandlerIF |
buildNumberHandler
Build number handler |
protected java.lang.String |
buildNumPropertyName
Build number property name |
protected JReleaseInfoBean |
creator
Generator for build info source file. |
protected boolean |
isWithViewer
Flag for additional viewer code |
protected java.util.Map |
props
Membervariables for created class. |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
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). |
protected boolean |
isRelativePath(java.lang.String path)
Utility method to check if a path is relative. |
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 |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map props
protected JReleaseInfoBean creator
protected BuildNumberHandlerIF buildNumberHandler
protected boolean isWithViewer
protected java.lang.String buildNumPropertyName
Constructor Detail |
public JReleaseInfoAntTask()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
org.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)
public void setClassName(java.lang.String className)
className
- of the JReleaseInfopublic void setVersion(java.lang.String version)
version
- infopublic void setProject(java.lang.String project)
public 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
- flagprotected boolean isRelativePath(java.lang.String path)
path
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |