net.sf.antcontrib.cpptasks.borland

Class BorlandLibrarian

public class BorlandLibrarian extends CommandLineLinker

Adapter for the Borland(r) tlib Librarian

Author: Curt Arnold

Method Summary
protected voidaddBase(long base, Vector args)
protected voidaddEntry(String entry, Vector args)
protected voidaddFixed(Boolean fixed, Vector args)
protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args)
protected voidaddIncremental(boolean incremental, Vector args)
protected voidaddMap(boolean map, Vector args)
protected voidaddStack(int stack, Vector args)
protected StringgetCommandFileSwitch(String cmdFile)
StringgetIdentifier()
Gets identifier for the linker.
static BorlandLibrariangetInstance()
File[]getLibraryPath()
String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
LinkergetLinker(LinkType type)
intgetMaximumCommandLength()
String[]getOutputFileSwitch(String outFile)
booleanisCaseSensitive()
voidlink(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
Builds a library
protected String[]prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config)
Prepares argument list for exec command.
protected String[]prepareResponseFile(File outputFile, String[] args)
Prepares argument list to execute the linker using a response file.
protected StringquoteFilename(StringBuffer buf, String filename)
Encloses problematic file names within quotes.

Method Detail

addBase

protected void addBase(long base, Vector args)

addEntry

protected void addEntry(String entry, Vector args)

addFixed

protected void addFixed(Boolean fixed, Vector args)

addImpliedArgs

protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)

addIncremental

protected void addIncremental(boolean incremental, Vector args)

addMap

protected void addMap(boolean map, Vector args)

addStack

protected void addStack(int stack, Vector args)

getCommandFileSwitch

protected String getCommandFileSwitch(String cmdFile)

getIdentifier

public String getIdentifier()
Gets identifier for the linker. TLIB will lockup when attempting to get version information. Since the Librarian version isn't critical just return a stock response.

getInstance

public static BorlandLibrarian getInstance()

getLibraryPath

public File[] getLibraryPath()

getLibraryPatterns

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

getLinker

public Linker getLinker(LinkType type)

getMaximumCommandLength

public int getMaximumCommandLength()

getOutputFileSwitch

public String[] getOutputFileSwitch(String outFile)

isCaseSensitive

public boolean isCaseSensitive()

link

public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)
Builds a library

prepareArguments

protected String[] prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config)
Prepares argument list for exec command.

Parameters: outputDir linker output directory outputName linker output name sourceFiles linker input files (.obj, .o, .res) config linker configuration

Returns: arguments for runTask

prepareResponseFile

protected String[] prepareResponseFile(File outputFile, String[] args)
Prepares argument list to execute the linker using a response file.

Parameters: outputFile linker output file args output of prepareArguments

Returns: arguments for runTask

quoteFilename

protected String quoteFilename(StringBuffer buf, String filename)
Encloses problematic file names within quotes.

Parameters: buf string buffer filename source file name

Returns: filename potentially enclosed in quotes.

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.