net.sf.antcontrib.cpptasks.gcc

Class AbstractArLibrarian

Implemented Interfaces:
Cloneable, Linker, Processor
Known Direct Subclasses:
GccLibrarian, GccLibrarian, GccLibrarian

public abstract class AbstractArLibrarian
extends CommandLineLinker

Adapter for the "ar" tool
Authors:
Adam Murdoch
Curt Arnold

Field Summary

Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Constructor Summary

AbstractArLibrarian(String command, String identificationArg, String[] inputExtensions, String[] ignoredExtensions, String outputPrefix, String outputExtension, boolean isLibtool, AbstractArLibrarian libtoolLibrarian)

Method Summary

void
addBase(long base, Vector args)
protected void
addEntry(String entry, Vector args)
void
addFixed(Boolean fixed, Vector args)
void
addImpliedArgs(boolean debug, LinkType linkType, Vector args)
void
addIncremental(boolean incremental, Vector args)
void
addMap(boolean map, Vector args)
void
addStack(int stack, Vector args)
String
getCommandFileSwitch(String commandFile)
File[]
getLibraryPath()
String[]
getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
int
getMaximumCommandLength()
String[]
getOutputFileNames(String baseName, VersionInfo versionInfo)
String[]
getOutputFileSwitch(String outputFile)
boolean
isCaseSensitive()
void
link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config)

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker

addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandFileSwitch, getIdentifier, getLibtoolLinker, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker

addVersionFiles, bid, changeEnvironment, createConfiguration, createConfiguration, getLibraryKey, getOutputFileNames

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Constructor Details

AbstractArLibrarian

protected AbstractArLibrarian(String command,
                              String identificationArg,
                              String[] inputExtensions,
                              String[] ignoredExtensions,
                              String outputPrefix,
                              String outputExtension,
                              boolean isLibtool,
                              AbstractArLibrarian libtoolLibrarian)

Method Details

addBase

public void addBase(long base,
                    Vector args)
Overrides:
addBase in interface CommandLineLinker

addEntry

protected void addEntry(String entry,
                        Vector args)
Overrides:
addEntry in interface CommandLineLinker

addFixed

public void addFixed(Boolean fixed,
                     Vector args)
Overrides:
addFixed in interface CommandLineLinker

addImpliedArgs

public void addImpliedArgs(boolean debug,
                           LinkType linkType,
                           Vector args)
Overrides:
addImpliedArgs in interface CommandLineLinker

addIncremental

public void addIncremental(boolean incremental,
                           Vector args)
Overrides:
addIncremental in interface CommandLineLinker

addMap

public void addMap(boolean map,
                   Vector args)
Overrides:
addMap in interface CommandLineLinker

addStack

public void addStack(int stack,
                     Vector args)
Overrides:
addStack in interface CommandLineLinker

getCommandFileSwitch

public String getCommandFileSwitch(String commandFile)
Overrides:
getCommandFileSwitch in interface CommandLineLinker

getLibraryPath

public File[] getLibraryPath()
Specified by:
getLibraryPath in interface Linker

getLibraryPatterns

public String[] getLibraryPatterns(String[] libnames,
                                   LibraryTypeEnum libType)
Specified by:
getLibraryPatterns in interface Linker

getMaximumCommandLength

public int getMaximumCommandLength()
Overrides:
getMaximumCommandLength in interface CommandLineLinker

getOutputFileNames

public String[] getOutputFileNames(String baseName,
                                   VersionInfo versionInfo)
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in interface CommandLineLinker

getOutputFileSwitch

public String[] getOutputFileSwitch(String outputFile)
Overrides:
getOutputFileSwitch in interface CommandLineLinker

isCaseSensitive

public boolean isCaseSensitive()
Specified by:
isCaseSensitive in interface Linker

link

public void link(CCTask task,
                 File outputFile,
                 String[] sourceFiles,
                 CommandLineLinkerConfiguration config)
            throws BuildException
Overrides:
link in interface CommandLineLinker

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.