|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.oscg.jreleaseinfo.JReleaseInfoBean
Central class creates the java source file for the desired properties.
Field Summary | |
static java.lang.String |
MESSAGE_EXC_CLASSNAME
Exception message on invalid class name. |
static java.lang.String |
MESSAGE_EXC_PACKAGENAME
Exception message on invalid package name. |
static java.lang.String |
MESSAGE_EXC_TARGETDIR
Exception message on invalid filename. |
static java.lang.String |
PROPNAME_BUILDDATE
Property name for Build Date. |
Constructor Summary | |
JReleaseInfoBean()
|
Method Summary | |
java.io.File |
createJReleaseInfoFile()
Utility method to write the class java code to a String. |
void |
deleteJReleaseInfoFile()
Utility method to delete the JReleaseInfo file (for test purposes). |
void |
execute(java.util.Map props,
SourceGeneratorIF sourceGenerator)
Execute() method. |
void |
setClassName(java.lang.String className)
Set the class name of the JReleaseInfoAntTask class. |
void |
setPackageName(java.lang.String packageName)
Set the package name of the JReleaseInfoAntTask class. |
void |
setTargetDir(java.lang.String targetDir)
Set the target directory where the file should be created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPNAME_BUILDDATE
public static final java.lang.String MESSAGE_EXC_CLASSNAME
public static final java.lang.String MESSAGE_EXC_PACKAGENAME
public static final java.lang.String MESSAGE_EXC_TARGETDIR
Constructor Detail |
public JReleaseInfoBean()
Method Detail |
public void execute(java.util.Map props, SourceGeneratorIF sourceGenerator) throws java.io.IOException
props
- Map containing the JReleaseInfoProperties
java.lang.IllegalArgumentException
- on invalid arguments
java.io.IOException
- on file writing problemspublic java.io.File createJReleaseInfoFile()
public void deleteJReleaseInfoFile()
public void setClassName(java.lang.String className)
className
- Stringpublic void setPackageName(java.lang.String packageName)
packageName
- Stringpublic void setTargetDir(java.lang.String targetDir)
targetDir
- Name of directory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |