net.sf.antcontrib.cpptasks.platforms
Class WindowsPlatform
java.lang.Object
net.sf.antcontrib.cpptasks.platforms.WindowsPlatform
public final class WindowsPlatform
extends java.lang.Object
Platform specific behavior for Microsoft Windows.
static void | addVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher) - Adds source or object files to the bidded fileset to
support version information.
|
static short[] | parseVersion(String version) - Parse version string into array of four short values.
|
static void | writeResource(Writer writer, VersionInfo versionInfo, File outputFile, boolean isDebug, LinkType linkType) - Writes windows resource.
|
addVersionFiles
public static void addVersionFiles(VersionInfo versionInfo,
LinkType linkType,
File outputFile,
boolean isDebug,
File objDir,
TargetMatcher matcher)
throws IOException
Adds source or object files to the bidded fileset to
support version information.
versionInfo
- version informationlinkType
- link typeoutputFile
- name of generated executableisDebug
- true if debug buildobjDir
- directory for generated filesmatcher
- bidded fileset
parseVersion
public static short[] parseVersion(String version)
Parse version string into array of four short values.
- short[] four element array
writeResource
public static void writeResource(Writer writer,
VersionInfo versionInfo,
File outputFile,
boolean isDebug,
LinkType linkType)
throws IOException
Writes windows resource.
writer
- writer, may not be nulversionInfo
- version informationoutputFile
- executable fileisDebug
- true if debuglinkType
- link type
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.