Class OpenWatcomProcessor

java.lang.Object
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor

public final class OpenWatcomProcessor extends Object
A add-in class for OpenWatcom processors.
  • Constructor Details

    • OpenWatcomProcessor

      private OpenWatcomProcessor()
      Private constructor.
  • 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
    • 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
    • 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
    • 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