ch.oscg.jreleaseinfo
Class JReleaseInfoBean

java.lang.Object
  extended bych.oscg.jreleaseinfo.JReleaseInfoBean

public class JReleaseInfoBean
extends java.lang.Object

Central class creates the java source file for the desired properties.

Version:
$Revision: 1.2 $ ($Date: 2005/08/06 14:12:36 $ / $Author: tcotting $)
Author:
Thomas Cotting, Tangarena Engineering AG, Luzern

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

PROPNAME_BUILDDATE

public static final java.lang.String PROPNAME_BUILDDATE
Property name for Build Date.

See Also:
Constant Field Values

MESSAGE_EXC_CLASSNAME

public static final java.lang.String MESSAGE_EXC_CLASSNAME
Exception message on invalid class name.

See Also:
Constant Field Values

MESSAGE_EXC_PACKAGENAME

public static final java.lang.String MESSAGE_EXC_PACKAGENAME
Exception message on invalid package name.

See Also:
Constant Field Values

MESSAGE_EXC_TARGETDIR

public static final java.lang.String MESSAGE_EXC_TARGETDIR
Exception message on invalid filename.

See Also:
Constant Field Values
Constructor Detail

JReleaseInfoBean

public JReleaseInfoBean()
Method Detail

execute

public void execute(java.util.Map props,
                    SourceGeneratorIF sourceGenerator)
             throws java.io.IOException
Execute() method.

Parameters:
props - Map containing the JReleaseInfoProperties
Throws:
java.lang.IllegalArgumentException - on invalid arguments
java.io.IOException - on file writing problems

createJReleaseInfoFile

public java.io.File createJReleaseInfoFile()
Utility method to write the class java code to a String.

Returns:
the created java class in a string

deleteJReleaseInfoFile

public void deleteJReleaseInfoFile()
Utility method to delete the JReleaseInfo file (for test purposes).


setClassName

public void setClassName(java.lang.String className)
Set the class name of the JReleaseInfoAntTask class.

Parameters:
className - String

setPackageName

public void setPackageName(java.lang.String packageName)
Set the package name of the JReleaseInfoAntTask class.

Parameters:
packageName - String

setTargetDir

public void setTargetDir(java.lang.String targetDir)
Set the target directory where the file should be created.

Parameters:
targetDir - Name of directory


Copyright © 2005 Open Source Competence Group (OSCG). All Rights Reserved.