public class BorlandLibrarian extends CommandLineLinker
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
限定符和类型 | 方法和说明 |
---|---|
protected String |
getCommandFileSwitch(String cmdFile) |
String |
getIdentifier()
Gets identifier for the linker.
|
static BorlandLibrarian |
getInstance() |
File[] |
getLibraryPath()
returns the library path for the linker
|
String[] |
getLibraryPatterns(String[] libnames,
LibraryTypeEnum libType)
Returns a set of filename patterns corresponding to library names.
|
Linker |
getLinker(LinkType type)
Gets the linker for the specified link type.
|
int |
getMaximumCommandLength() |
String[] |
getOutputFileSwitch(String outFile) |
boolean |
isCaseSensitive()
Returns true if the linker is case-sensitive
|
void |
link(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 String |
quoteFilename(StringBuffer buf,
String filename)
Encloses problematic file names within quotes.
|
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryDirectory, addLibraryPath, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandWithPath, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, runCommand, setCommand
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
public static BorlandLibrarian getInstance()
protected String getCommandFileSwitch(String cmdFile)
getCommandFileSwitch
在类中 CommandLineLinker
public String getIdentifier()
getIdentifier
在接口中 Processor
getIdentifier
在类中 CommandLineLinker
public File[] getLibraryPath()
Linker
public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Linker
libnames
- array of library namespublic Linker getLinker(LinkType type)
Linker
public int getMaximumCommandLength()
getMaximumCommandLength
在类中 CommandLineLinker
public String[] getOutputFileSwitch(String outFile)
getOutputFileSwitch
在类中 CommandLineLinker
public boolean isCaseSensitive()
Linker
public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException
link
在类中 CommandLineLinker
org.apache.tools.ant.BuildException
protected String[] prepareArguments(CCTask task, String outputDir, String outputName, String[] sourceFiles, CommandLineLinkerConfiguration config)
prepareArguments
在类中 CommandLineLinker
outputDir
- linker output directoryoutputName
- linker output namesourceFiles
- linker input files (.obj, .o, .res)config
- linker configurationtask
- compilation task.protected String[] prepareResponseFile(File outputFile, String[] args) throws IOException
prepareResponseFile
在类中 CommandLineLinker
outputFile
- linker output fileargs
- output of prepareArgumentsIOException
protected String quoteFilename(StringBuffer buf, String filename)
quoteFilename
在类中 CommandLineLinker
buf
- string bufferfilename
- source file nameCopyright © 2005-2017 NAR Maven Plugin developers. All Rights Reserved.