net.sf.antcontrib.cpptasks.openwatcom

Class OpenWatcomLinker

public abstract class OpenWatcomLinker extends CommandLineLinker

Adapter for the OpenWatcom linker.

Author: Curt Arnold

Constructor Summary
protected OpenWatcomLinker(String command, String outputSuffix)
Constructor.
Method Summary
protected voidaddBase(long base, Vector args)
Add specified base address to linker options.
protected voidaddEntry(String entry, Vector args)
Adds non-default entry point.
protected voidaddFixed(Boolean fixed, Vector args)
Adds fixed option.
protected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args)
Adds other command line parameters.
protected voidaddIncremental(boolean incremental, Vector args)
Add command line switch to force incremental linking.
protected voidaddMap(boolean map, Vector args)
Add command line switch to force map generation.
protected voidaddStack(int stack, Vector args)
Add command line switch for stack reservation.
voidaddVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher)
Adds source or object files to the bidded fileset to support version information.
StringgetCommandFileSwitch(String commandFile)
Get command file switch.
File[]getLibraryPath()
Get search path for libraries.
String[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for libraries.
intgetMaximumCommandLength()
Get maximum command line length.
String[]getOutputFileSwitch(String outFile)
Get output file switch.
booleanisCaseSensitive()
Gets file name sensitivity of processors.

Constructor Detail

OpenWatcomLinker

protected OpenWatcomLinker(String command, String outputSuffix)
Constructor.

Parameters: command String command string (wcl386 or wfl386) outputSuffix String output suffix

Method Detail

addBase

protected final void addBase(long base, Vector args)
Add specified base address to linker options.

Parameters: base long base address args Vector command options

addEntry

protected final void addEntry(String entry, Vector args)
Adds non-default entry point.

Parameters: entry entry point name args command line parameters

addFixed

protected final void addFixed(Boolean fixed, Vector args)
Adds fixed option.

Parameters: fixed if executable is fixed args command line parameters

addImpliedArgs

protected final void addImpliedArgs(boolean debug, LinkType linkType, Vector args)
Adds other command line parameters.

Parameters: debug boolean is debug linkType LinkType link type args Vector command line arguments

addIncremental

protected final void addIncremental(boolean incremental, Vector args)
Add command line switch to force incremental linking.

Parameters: incremental boolean do incremental linking args Vector command line arguments

addMap

protected final void addMap(boolean map, Vector args)
Add command line switch to force map generation.

Parameters: map boolean build map args Vector command line arguments

addStack

protected final void addStack(int stack, Vector args)
Add command line switch for stack reservation.

Parameters: stack int stack size. args Vector command line arguments.

addVersionFiles

public final void addVersionFiles(VersionInfo versionInfo, LinkType linkType, File outputFile, boolean isDebug, File objDir, TargetMatcher matcher)
Adds source or object files to the bidded fileset to support version information.

Parameters: versionInfo version information linkType link type isDebug true if debug build outputFile name of generated executable objDir directory for generated files matcher bidded fileset

Throws: IOException if unable to write version resource

getCommandFileSwitch

public final String getCommandFileSwitch(String commandFile)
Get command file switch.

Parameters: commandFile String command file name

Returns: String command line option

getLibraryPath

public final File[] getLibraryPath()
Get search path for libraries.

Returns: File[] library path

getLibraryPatterns

public final String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
Get file selectors for libraries.

Parameters: libnames String[] libType LibraryTypeEnum

Returns: String[]

getMaximumCommandLength

public final int getMaximumCommandLength()
Get maximum command line length.

Returns: int command line length

getOutputFileSwitch

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

Parameters: outFile Output file name

Returns: String[] command line switches

isCaseSensitive

public final boolean isCaseSensitive()
Gets file name sensitivity of processors.

Returns: boolean true if case sensitive.

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