net.sf.antcontrib.cpptasks.openwatcom

Class OpenWatcomCompiler

public abstract class OpenWatcomCompiler extends CommandLineCompiler

An abstract base class for the OpenWatcom C and Fortran compilers.

Author: Curt Arnold

Constructor Summary
protected OpenWatcomCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean newEnvironment, Environment env)
Constructor.
Method Summary
protected voidaddImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
Add implied arguments.
protected voidaddWarningSwitch(Vector args, int level)
Add warning switch.
ProcessorchangeEnvironment(boolean newEnvironment, Environment env)
Change enviroment.
protected voidgetDefineSwitch(StringBuffer buffer, String define, String value)
Get define switch.
protected File[]getEnvironmentIncludePath()
Get include path from environment.
protected StringgetIncludeDirSwitch(String includeDir)
Get include directory switch.
intgetMaximumCommandLength()
Get maximum command line length.
protected voidgetUndefineSwitch(StringBuffer buffer, String define)
Get undefine switch.

Constructor Detail

OpenWatcomCompiler

protected OpenWatcomCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean newEnvironment, Environment env)
Constructor.

Parameters: command String command identifierArg String identifier sourceExtensions String[] source extension headerExtensions String[] header extension newEnvironment boolean use new enviroment env Environment environment

Method Detail

addImpliedArgs

protected final void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
Add implied arguments.

Parameters: args Vector command line arguments debug boolean is debug multithreaded boolean multithreaderd exceptions boolean support exceptions linkType LinkType link type rtti Boolean run time type information optimization OptimizationEnum

addWarningSwitch

protected final void addWarningSwitch(Vector args, int level)
Add warning switch.

Parameters: args Vector command line arguments level int warning level

changeEnvironment

public final Processor changeEnvironment(boolean newEnvironment, Environment env)
Change enviroment.

Parameters: newEnvironment boolean use new enviroment env Environment environment

Returns: Processor modified processor

getDefineSwitch

protected final void getDefineSwitch(StringBuffer buffer, String define, String value)
Get define switch.

Parameters: buffer StringBuffer buffer define String preprocessor macro value String value, may be null.

getEnvironmentIncludePath

protected final File[] getEnvironmentIncludePath()
Get include path from environment.

Returns: File[]

getIncludeDirSwitch

protected final String getIncludeDirSwitch(String includeDir)
Get include directory switch.

Parameters: includeDir String include directory

Returns: String command line argument

getMaximumCommandLength

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

Returns: int maximum command line length

getUndefineSwitch

protected final void getUndefineSwitch(StringBuffer buffer, String define)
Get undefine switch.

Parameters: buffer StringBuffer argument destination define String preprocessor macro

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