net.sf.antcontrib.cpptasks.openwatcom

Class OpenWatcomLibrarian

public final class OpenWatcomLibrarian extends CommandLineLinker

Adapter for the OpenWatcom Librarian.

Author: Curt Arnold

Method Summary
protected voidaddBase(long base, Vector args)
Add base address.
protected voidaddEntry(String entry, Vector args)
Add alternative entry point.
protected voidaddFixed(Boolean fixed, Vector args)
Add fixed parameter.
protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args)
Add implied arguments.
protected voidaddIncremental(boolean incremental, Vector args)
Add incremental option.
protected voidaddMap(boolean map, Vector args)
Add map option.
protected voidaddStack(int stack, Vector args)
Add stack size option.
protected StringgetCommandFileSwitch(String cmdFile)
Get command file switch.
static OpenWatcomLibrariangetInstance()
Singleton accessor.
File[]getLibraryPath()
Get library search path.
String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for specified library names.
LinkergetLinker(LinkType type)
Get linker.
intgetMaximumCommandLength()
Gets maximum command line.
String[]getOutputFileSwitch(String outFile)
Create output file switch.
booleanisCaseSensitive()
Gets case-sensisitivity of processor.
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.

Method Detail

addBase

protected void addBase(long base, Vector args)
Add base address.

Parameters: base long base address args Vector command line arguments

addEntry

protected void addEntry(String entry, Vector args)
Add alternative entry point.

Parameters: entry String entry point args Vector command line arguments

addFixed

protected void addFixed(Boolean fixed, Vector args)
Add fixed parameter.

Parameters: fixed Boolean true if fixed args Vector command line arguments

addImpliedArgs

protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)
Add implied arguments.

Parameters: debug boolean true if debugging linkType LinkType link type args Vector command line arguments

addIncremental

protected void addIncremental(boolean incremental, Vector args)
Add incremental option.

Parameters: incremental boolean true if incremental args Vector command line arguments

addMap

protected void addMap(boolean map, Vector args)
Add map option.

Parameters: map boolean true to create map file args Vector command line argument

addStack

protected void addStack(int stack, Vector args)
Add stack size option.

Parameters: stack int stack size args Vector command line arguments

getCommandFileSwitch

protected String getCommandFileSwitch(String cmdFile)
Get command file switch.

Parameters: cmdFile String command file

Returns: String command file switch

getInstance

public static OpenWatcomLibrarian getInstance()
Singleton accessor.

Returns: OpenWatcomLibrarian librarian instance

getLibraryPath

public File[] getLibraryPath()
Get library search path.

Returns: File[] library search path

getLibraryPatterns

public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for specified library names.

Parameters: libnames String[] library names libType LibraryTypeEnum library type enum

Returns: String[] file selection patterns

getLinker

public Linker getLinker(LinkType type)
Get linker.

Parameters: type LinkType link type

Returns: Linker linker

getMaximumCommandLength

public int getMaximumCommandLength()
Gets maximum command line.

Returns: int maximum command line

getOutputFileSwitch

public String[] getOutputFileSwitch(String outFile)
Create output file switch.

Parameters: outFile String output file switch

Returns: String[] output file switch

isCaseSensitive

public boolean isCaseSensitive()
Gets case-sensisitivity of processor.

Returns: boolean true if case sensitive

link

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

Parameters: task task outputFile generated library sourceFiles object files config linker configuration

prepareArguments

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

Parameters: task task outputDir output directory outputName output file name sourceFiles object files config linker configuration

Returns: arguments for runTask

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