Class BorlandProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.borland.BorlandProcessor
A add-in class for Borland(r) processor adapters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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)
-
Constructor Details
-
BorlandProcessor
private BorlandProcessor()
-
-
Method Details
-
addWarningSwitch
-
getDefineSwitch
-
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 librariesdefaultRelativePath
- default path relative to executable directory- Returns:
- path
-
getIncludeDirSwitch
-
getLibraryPatterns
-
getOutputFileSwitch
-
getUndefineSwitch
-
isCaseSensitive
public static boolean isCaseSensitive() -
quoteFile
-
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 fileargs
- output of prepareArguments- Returns:
- arguments for runTask
- Throws:
IOException
-