net.sf.antcontrib.cpptasks
Class VersionInfo

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.types.DataType
          extended bynet.sf.antcontrib.cpptasks.VersionInfo

public class VersionInfo
extends org.apache.tools.ant.types.DataType

Version Information. (Non-functional prototype)


Field Summary
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
VersionInfo()
          Constructor.
 
Method Summary
 void execute()
           
 java.lang.String getCompanyname()
          Gets Company name.
 java.lang.String getCompatibilityversion()
          Gets compatibility version.
 java.lang.String getDescription()
          Gets Description.
 java.lang.String getFilecomments()
          Gets comments.
 java.lang.String getFileversion()
          Gets file version.
 java.lang.String getInternalname()
          Gets internal name.
 java.lang.String getLanguage()
          Gets file language, should be an IETF RFC 3066 identifier, for example, en-US.
 java.lang.String getLegalcopyright()
          Gets legal copyright.
 java.lang.String getLegaltrademark()
          Gets legal trademark.
 java.lang.String getOriginalfilename()
          Gets original filename.
 java.lang.String getPrivatebuild()
          Gets private build.
 java.lang.String getProductname()
          Gets product name.
 java.lang.String getProductversion()
          Gets Product version.
 java.lang.String getSpecialbuild()
          Special build
 boolean isActive()
          Returns true if the define's if and unless conditions (if any) are satisfied.
 void setCompanyname(java.lang.String value)
          Sets company name.
 void setCompatibilityversion(java.lang.String value)
          Sets compatibility version.
 void setExtends(java.lang.String id)
          Sets the name of a version info that this info extends.
 void setFilecomments(java.lang.String value)
          Sets comments.
 void setFileversion(java.lang.String value)
          Sets file version.
 void setId(java.lang.String id)
          Sets an id that can be used to reference this element.
 void setIf(java.lang.String propName)
          Sets the property name for the 'if' condition.
 void setInternalname(java.lang.String value)
          Sets internal name.
 void setLanguage(java.lang.String value)
          Sets language.
 void setLegalcopyright(java.lang.String value)
          Sets legal copyright.
 void setLegaltrademark(java.lang.String value)
          Sets legal trademark.
 void setOriginalfilename(java.lang.String value)
          Sets original name.
 void setPrivatebuild(java.lang.String value)
          Sets private build.
 void setProductname(java.lang.String value)
          Sets product name.
 void setProductversion(java.lang.String value)
          Sets product version.
 void setRefid(org.apache.tools.ant.types.Reference r)
          Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location.
 void setSpecialbuild(java.lang.String value)
          Sets private build.
 void setUnless(java.lang.String propName)
          Set the property name for the 'unless' condition.
 void writeResource(java.io.Writer writer, org.apache.tools.ant.Project p, java.lang.String executableName)
          Writes windows resource
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionInfo

public VersionInfo()
Constructor.

Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

isActive

public final boolean isActive()
                       throws org.apache.tools.ant.BuildException
Returns true if the define's if and unless conditions (if any) are satisfied.

Throws:
org.apache.tools.ant.BuildException - throws build exception if name is not set

setId

public void setId(java.lang.String id)
Sets an id that can be used to reference this element.

Parameters:
id - id

setExtends

public void setExtends(java.lang.String id)
Sets the name of a version info that this info extends.

Parameters:
id - id

setIf

public final void setIf(java.lang.String propName)
Sets the property name for the 'if' condition. The define will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.

Parameters:
propName - property name

setRefid

public void setRefid(org.apache.tools.ant.types.Reference r)
              throws org.apache.tools.ant.BuildException
Specifies that this element should behave as if the content of the element with the matching id attribute was inserted at this location. If specified, no other attributes should be specified.

Throws:
org.apache.tools.ant.BuildException

setUnless

public final void setUnless(java.lang.String propName)
Set the property name for the 'unless' condition. If named property is set, the define will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.

Parameters:
propName - name of property

getFileversion

public java.lang.String getFileversion()
Gets file version.

Returns:
file version, may be null.

getProductversion

public java.lang.String getProductversion()
Gets Product version.

Returns:
product version, may be null

getCompatibilityversion

public java.lang.String getCompatibilityversion()
Gets compatibility version.

Returns:
compatibility version, may be null

getLanguage

public java.lang.String getLanguage()
Gets file language, should be an IETF RFC 3066 identifier, for example, en-US.

Returns:
language, may be null.

getFilecomments

public java.lang.String getFilecomments()
Gets comments.

Returns:
comments, may be null.

getCompanyname

public java.lang.String getCompanyname()
Gets Company name.

Returns:
company name, may be null.

getDescription

public java.lang.String getDescription()
Gets Description.

Returns:
description, may be null.

getInternalname

public java.lang.String getInternalname()
Gets internal name.

Returns:
internal name, may be null.

getLegalcopyright

public java.lang.String getLegalcopyright()
Gets legal copyright.

Returns:
legal copyright, may be null.

getLegaltrademark

public java.lang.String getLegaltrademark()
Gets legal trademark.

Returns:
legal trademark, may be null;

getOriginalfilename

public java.lang.String getOriginalfilename()
Gets original filename.

Returns:
original filename, may be null.

getPrivatebuild

public java.lang.String getPrivatebuild()
Gets private build.

Returns:
private build, may be null.

getProductname

public java.lang.String getProductname()
Gets product name.

Returns:
product name, may be null.

getSpecialbuild

public java.lang.String getSpecialbuild()
Special build

Returns:
special build, may be null.

setFileversion

public void setFileversion(java.lang.String value)
                    throws org.apache.tools.ant.BuildException
Sets file version.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setProductversion

public void setProductversion(java.lang.String value)
                       throws org.apache.tools.ant.BuildException
Sets product version.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setCompatibilityversion

public void setCompatibilityversion(java.lang.String value)
                             throws org.apache.tools.ant.BuildException
Sets compatibility version.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setLanguage

public void setLanguage(java.lang.String value)
                 throws org.apache.tools.ant.BuildException
Sets language.

Parameters:
value - new value, should be an IETF RFC 3066 language identifier.
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setFilecomments

public void setFilecomments(java.lang.String value)
                     throws org.apache.tools.ant.BuildException
Sets comments.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setCompanyname

public void setCompanyname(java.lang.String value)
                    throws org.apache.tools.ant.BuildException
Sets company name.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setInternalname

public void setInternalname(java.lang.String value)
                     throws org.apache.tools.ant.BuildException
Sets internal name. Internal name will automatically be specified from build step, only set this value if intentionally overriding that value.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setLegalcopyright

public void setLegalcopyright(java.lang.String value)
                       throws org.apache.tools.ant.BuildException
Sets legal copyright.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setLegaltrademark

public void setLegaltrademark(java.lang.String value)
                       throws org.apache.tools.ant.BuildException
Sets legal trademark.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setOriginalfilename

public void setOriginalfilename(java.lang.String value)
                         throws org.apache.tools.ant.BuildException
Sets original name. Only set this value if intentionally overriding the value from the build set.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setPrivatebuild

public void setPrivatebuild(java.lang.String value)
                     throws org.apache.tools.ant.BuildException
Sets private build.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setProductname

public void setProductname(java.lang.String value)
                    throws org.apache.tools.ant.BuildException
Sets product name.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

setSpecialbuild

public void setSpecialbuild(java.lang.String value)
                     throws org.apache.tools.ant.BuildException
Sets private build.

Parameters:
value - new value
Throws:
org.apache.tools.ant.BuildException - if specified with refid

writeResource

public void writeResource(java.io.Writer writer,
                          org.apache.tools.ant.Project p,
                          java.lang.String executableName)
                   throws java.io.IOException
Writes windows resource

Parameters:
writer - writer, may not be null.
executableName - name of executable
Throws:
java.io.IOException


Copyright © 2001-2004 Ant-Contrib project. All Rights Reserved.