net.sf.antcontrib.cpptasks.borland

Class BorlandResourceCompiler

Implemented Interfaces:
Cloneable, Compiler, Processor

public class BorlandResourceCompiler
extends CommandLineCompiler

Adapter for the Borland(r) brc32 Resource compiler.
Author:
Curt Arnold

Field Summary

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

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Method Summary

protected void
addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
protected void
addWarningSwitch(Vector args, int level)
Processor
changeEnvironment(boolean newEnvironment, Environment env)
void
compile(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor)
protected Parser
createParser(File source)
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler
protected int
getArgumentCountPerInputFile()
protected void
getDefineSwitch(StringBuffer buffer, String define, String value)
protected File[]
getEnvironmentIncludePath()
protected String
getIncludeDirSwitch(String includeDir)
protected String
getInputFileArgument(File outputDir, String filename, int index)
static BorlandResourceCompiler
getInstance()
Linker
getLinker(LinkType type)
int
getMaximumCommandLength()
protected int
getMaximumInputFilesPerCommand()
protected int
getTotalArgumentLengthForInputFile(File outputDir, String inputFile)
protected void
getUndefineSwitch(StringBuffer buffer, String define)

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

addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand

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

canParse, createConfiguration, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude

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

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

Method Details

addImpliedArgs

protected void addImpliedArgs(Vector args,
                              boolean debug,
                              boolean multithreaded,
                              boolean exceptions,
                              LinkType linkType,
                              Boolean rtti,
                              OptimizationEnum optimization)
Overrides:
addImpliedArgs in interface CommandLineCompiler

addWarningSwitch

protected void addWarningSwitch(Vector args,
                                int level)
Overrides:
addWarningSwitch in interface CommandLineCompiler

changeEnvironment

public Processor changeEnvironment(boolean newEnvironment,
                                   Environment env)
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in interface AbstractProcessor

compile

public void compile(CCTask task,
                    File outputDir,
                    String[] sourceFiles,
                    String[] args,
                    String[] endArgs,
                    boolean relentless,
                    CommandLineCompilerConfiguration config,
                    ProgressMonitor monitor)
            throws BuildException
Overrides:
compile in interface CommandLineCompiler

createParser

protected Parser createParser(File source)
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler
Overrides:
createParser in interface AbstractCompiler

getArgumentCountPerInputFile

protected int getArgumentCountPerInputFile()
Overrides:
getArgumentCountPerInputFile in interface CommandLineCompiler

getDefineSwitch

protected void getDefineSwitch(StringBuffer buffer,
                               String define,
                               String value)
Overrides:
getDefineSwitch in interface CommandLineCompiler

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()
Overrides:
getEnvironmentIncludePath in interface CommandLineCompiler

getIncludeDirSwitch

protected String getIncludeDirSwitch(String includeDir)
Overrides:
getIncludeDirSwitch in interface CommandLineCompiler

getInputFileArgument

protected String getInputFileArgument(File outputDir,
                                      String filename,
                                      int index)
Overrides:
getInputFileArgument in interface CommandLineCompiler

getInstance

public static BorlandResourceCompiler getInstance()

getLinker

public Linker getLinker(LinkType type)
Specified by:
getLinker in interface Processor

getMaximumCommandLength

public int getMaximumCommandLength()
Overrides:
getMaximumCommandLength in interface CommandLineCompiler

getMaximumInputFilesPerCommand

protected int getMaximumInputFilesPerCommand()
Overrides:
getMaximumInputFilesPerCommand in interface CommandLineCompiler

getTotalArgumentLengthForInputFile

protected int getTotalArgumentLengthForInputFile(File outputDir,
                                                 String inputFile)
Overrides:
getTotalArgumentLengthForInputFile in interface CommandLineCompiler

getUndefineSwitch

protected void getUndefineSwitch(StringBuffer buffer,
                                 String define)
Overrides:
getUndefineSwitch in interface CommandLineCompiler

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