Class BorlandResourceCompiler
- java.lang.Object
-
- net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
-
- net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
-
- net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
-
- net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)protected voidaddWarningSwitch(java.util.Vector args, int level)ProcessorchangeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)voidcompile(CCTask task, java.io.File outputDir, java.lang.String[] sourceFiles, java.lang.String[] args, java.lang.String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor)Compiles a source file.protected ParsercreateParser(java.io.File source)The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompilerprotected intgetArgumentCountPerInputFile()protected voidgetDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)protected java.io.File[]getEnvironmentIncludePath()protected java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir)protected java.lang.StringgetInputFileArgument(java.io.File outputDir, java.lang.String filename, int index)static BorlandResourceCompilergetInstance()LinkergetLinker(LinkType type)Gets the linker that is associated with this processorsintgetMaximumCommandLength()protected intgetMaximumInputFilesPerCommand()protected intgetTotalArgumentLengthForInputFile(java.io.File outputDir, java.lang.String inputFile)protected voidgetUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
-
-
-
Method Detail
-
getInstance
public static BorlandResourceCompiler getInstance()
-
addImpliedArgs
protected void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)- Specified by:
addImpliedArgsin classCommandLineCompiler
-
addWarningSwitch
protected void addWarningSwitch(java.util.Vector args, int level)- Specified by:
addWarningSwitchin classCommandLineCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
- Specified by:
changeEnvironmentin interfaceProcessor- Overrides:
changeEnvironmentin classAbstractProcessor
-
compile
public void compile(CCTask task, java.io.File outputDir, java.lang.String[] sourceFiles, java.lang.String[] args, java.lang.String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
Description copied from class:CommandLineCompilerCompiles a source file.- Overrides:
compilein classCommandLineCompiler- Throws:
org.apache.tools.ant.BuildException
-
createParser
protected Parser createParser(java.io.File source)
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler- Specified by:
createParserin classAbstractCompiler
-
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
- Overrides:
getArgumentCountPerInputFilein classCommandLineCompiler
-
getDefineSwitch
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)- Specified by:
getDefineSwitchin classCommandLineCompiler
-
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
- Specified by:
getEnvironmentIncludePathin classCommandLineCompiler
-
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
- Specified by:
getIncludeDirSwitchin classCommandLineCompiler
-
getInputFileArgument
protected java.lang.String getInputFileArgument(java.io.File outputDir, java.lang.String filename, int index)- Overrides:
getInputFileArgumentin classCommandLineCompiler
-
getLinker
public Linker getLinker(LinkType type)
Description copied from interface:ProcessorGets the linker that is associated with this processors
-
getMaximumCommandLength
public int getMaximumCommandLength()
- Specified by:
getMaximumCommandLengthin classCommandLineCompiler
-
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
- Overrides:
getMaximumInputFilesPerCommandin classCommandLineCompiler
-
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(java.io.File outputDir, java.lang.String inputFile)- Overrides:
getTotalArgumentLengthForInputFilein classCommandLineCompiler
-
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)- Specified by:
getUndefineSwitchin classCommandLineCompiler
-
-