net.sf.antcontrib.cpptasks.platforms

Class WindowsPlatform

public final class WindowsPlatform extends Object

Platform specific behavior for Microsoft Windows.

Author: Curt Arnold

Method Summary
static voidaddVersionFiles(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 voidwriteResource(Writer writer, VersionInfo versionInfo, File outputFile, boolean isDebug, LinkType linkType)
Writes windows resource.

Method Detail

addVersionFiles

public 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.

Parameters: versionInfo version information linkType link type isDebug true if debug build outputFile name of generated executable objDir directory for generated files matcher bidded fileset

Throws: IOException if unable to write version resource

parseVersion

public static short[] parseVersion(String version)
Parse version string into array of four short values.

Parameters: version String version

Returns: short[] four element array

writeResource

public static void writeResource(Writer writer, VersionInfo versionInfo, File outputFile, boolean isDebug, LinkType linkType)
Writes windows resource.

Parameters: writer writer, may not be nul versionInfo version information outputFile executable file isDebug true if debug linkType link type

Throws: IOException if error writing resource file

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.