net.sf.antcontrib.cpptasks.openwatcom

Class OpenWatcomProcessor

public final class OpenWatcomProcessor extends Object

A add-in class for OpenWatcom processors.
Method Summary
static voidaddWarningSwitch(Vector args, int level)
Adds warning command line options.
static StringgetCommandFileSwitch(String cmdFile)
Gets command line option to read from an option file.
static voidgetDefineSwitch(StringBuffer buffer, String define, String value)
Creates a command line option to define a preprocessor macro.
static StringgetIncludeDirSwitch(String includeDir)
Create a command line option to add a directory to the include path.
static String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for specified libraries.
static String[]getOutputFileSwitch(String outPath)
Builds command line options to specify the output file names.
static voidgetUndefineSwitch(StringBuffer buffer, String define)
Builds a command line option to undefine a preprocessor macro.
static booleanisCaseSensitive()
Gets whether processor tratement of file names is case-sensitive.

Method Detail

addWarningSwitch

public static void addWarningSwitch(Vector args, int level)
Adds warning command line options.

Parameters: args Vector list of options level int value of WarningLevelEnum

getCommandFileSwitch

public static String getCommandFileSwitch(String cmdFile)
Gets command line option to read from an option file.

Parameters: cmdFile String file name for option file

Returns: String Command line option

getDefineSwitch

public static void getDefineSwitch(StringBuffer buffer, String define, String value)
Creates a command line option to define a preprocessor macro.

Parameters: buffer StringBuffer destination buffer define String parameter to define value String value, may be null

getIncludeDirSwitch

public static String getIncludeDirSwitch(String includeDir)
Create a command line option to add a directory to the include path.

Parameters: includeDir String directory

Returns: String command line option

getLibraryPatterns

public static String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for specified libraries.

Parameters: libnames library names libType library type

Returns: file selectors

getOutputFileSwitch

public static String[] getOutputFileSwitch(String outPath)
Builds command line options to specify the output file names.

Parameters: outPath String path to output file

Returns: String[] command line options

getUndefineSwitch

public static void getUndefineSwitch(StringBuffer buffer, String define)
Builds a command line option to undefine a preprocessor macro.

Parameters: buffer StringBuffer destination define String macro to be undefined

isCaseSensitive

public static boolean isCaseSensitive()
Gets whether processor tratement of file names is case-sensitive.

Returns: boolean true if case sensitive

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