net.sf.antcontrib.cpptasks.openwatcom
Class OpenWatcomProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor
public final class OpenWatcomProcessor
extends java.lang.Object
A add-in class for OpenWatcom processors.
static void | addWarningSwitch(Vector args, int level) - Adds warning command line options.
|
static String | getCommandFileSwitch(String cmdFile) - Gets command line option to read from an option file.
|
static void | getDefineSwitch(StringBuffer buffer, String define, String value) - Creates a command line option to define a preprocessor macro.
|
static String | getIncludeDirSwitch(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 void | getUndefineSwitch(StringBuffer buffer, String define) - Builds a command line option to undefine a preprocessor macro.
|
static boolean | isCaseSensitive() - Gets whether processor tratement of file names is case-sensitive.
|
addWarningSwitch
public static void addWarningSwitch(Vector args,
int level)
Adds warning command line options.
args
- Vector list of optionslevel
- int value of WarningLevelEnum
getCommandFileSwitch
public static String getCommandFileSwitch(String cmdFile)
Gets command line option to read from an option file.
cmdFile
- String file name for option file
- 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.
buffer
- StringBuffer destination bufferdefine
- String parameter to definevalue
- 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.
includeDir
- String directory
- String command line option
getLibraryPatterns
public static String[] getLibraryPatterns(String[] libnames,
LibraryTypeEnum libType)
Get file selectors for specified libraries.
libnames
- library nameslibType
- library type
getOutputFileSwitch
public static String[] getOutputFileSwitch(String outPath)
Builds command line options to specify the output file names.
outPath
- String path to output file
- String[] command line options
getUndefineSwitch
public static void getUndefineSwitch(StringBuffer buffer,
String define)
Builds a command line option to undefine a preprocessor macro.
buffer
- StringBuffer destinationdefine
- String macro to be undefined
isCaseSensitive
public static boolean isCaseSensitive()
Gets whether processor tratement of file names is case-sensitive.
- boolean true if case sensitive
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.