Class OpenWatcomProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor
A add-in class for OpenWatcom processors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Gets whether processor tratement of file names is case-sensitive.
-
Constructor Details
-
OpenWatcomProcessor
private OpenWatcomProcessor()Private constructor.
-
-
Method Details
-
addWarningSwitch
Adds warning command line options.- Parameters:
args
- Vector list of optionslevel
- int value of WarningLevelEnum
-
getCommandFileSwitch
Gets command line option to read from an option file.- Parameters:
cmdFile
- String file name for option file- Returns:
- String Command line option
-
getDefineSwitch
Creates a command line option to define a preprocessor macro.- Parameters:
buffer
- StringBuffer destination bufferdefine
- String parameter to definevalue
- String value, may be null
-
getIncludeDirSwitch
Create a command line option to add a directory to the include path.- Parameters:
includeDir
- String directory- Returns:
- String command line option
-
getOutputFileSwitch
Builds command line options to specify the output file names.- Parameters:
outPath
- String path to output file- Returns:
- String[] command line options
-
getLibraryPatterns
Get file selectors for specified libraries.- Parameters:
libnames
- library nameslibType
- library type- Returns:
- file selectors
-
getUndefineSwitch
Builds a command line option to undefine a preprocessor macro.- Parameters:
buffer
- StringBuffer destinationdefine
- 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
-