net.sf.antcontrib.cpptasks.openwatcom

Class OpenWatcomProcessor


public final class OpenWatcomProcessor
extends java.lang.Object

A add-in class for OpenWatcom processors.

Method Summary

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.

Method Details

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 B) 2001-2006 Ant-Contrib project. All Rights Reserved.