net.sf.antcontrib.cpptasks.borland
Class BorlandProcessor

java.lang.Object
  extended by net.sf.antcontrib.cpptasks.borland.BorlandProcessor

public final class BorlandProcessor
extends Object

A add-in class for Borland(r) processor adapters


Method Summary
static void addWarningSwitch(Vector args, int level)
           
static void getDefineSwitch(StringBuffer buffer, String define, String value)
           
static File[] getEnvironmentPath(String toolName, char switchChar, String[] defaultRelativePath)
          This method extracts path information from the appropriate .cfg file in the install directory.
static String getIncludeDirSwitch(String includeOption, String includeDir)
           
static String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
           
static String[] getOutputFileSwitch(String outFile)
           
static void getUndefineSwitch(StringBuffer buffer, String define)
           
static boolean isCaseSensitive()
           
static String[] prepareResponseFile(File outputFile, String[] args, String continuation)
          Prepares argument list to execute the linker using a response file.
static void quoteFile(StringBuffer buf, String outPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addWarningSwitch

public static void addWarningSwitch(Vector args,
                                    int level)

getDefineSwitch

public static void getDefineSwitch(StringBuffer buffer,
                                   String define,
                                   String value)

getEnvironmentPath

public static File[] getEnvironmentPath(String toolName,
                                        char switchChar,
                                        String[] defaultRelativePath)
This method extracts path information from the appropriate .cfg file in the install directory.

Parameters:
toolName - Tool name, for example, "bcc32", "brc32", "ilink32"
switchChar - Command line switch character, for example "L" for libraries
defaultRelativePath - default path relative to executable directory
Returns:
path

getIncludeDirSwitch

public static String getIncludeDirSwitch(String includeOption,
                                         String includeDir)

getLibraryPatterns

public static String[] getLibraryPatterns(String[] libnames,
                                          LibraryTypeEnum libType)

getOutputFileSwitch

public static String[] getOutputFileSwitch(String outFile)

getUndefineSwitch

public static void getUndefineSwitch(StringBuffer buffer,
                                     String define)

isCaseSensitive

public static boolean isCaseSensitive()

quoteFile

public static void quoteFile(StringBuffer buf,
                             String outPath)

prepareResponseFile

public static String[] prepareResponseFile(File outputFile,
                                           String[] args,
                                           String continuation)
                                    throws IOException
Prepares argument list to execute the linker using a response file.

Parameters:
outputFile - linker output file
args - output of prepareArguments
Returns:
arguments for runTask
Throws:
IOException


Copyright © 2001-2011 Ant-Contrib Project. All Rights Reserved.