net.sf.antcontrib.cpptasks.borland
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
Method Summary |
protected void |
addImpliedArgs(java.util.Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType)
|
protected void |
addWarningSwitch(java.util.Vector args,
int level)
|
void |
compile(CCTask task,
java.io.File outputDir,
java.lang.String[] sourceFiles,
java.lang.String[] args,
java.lang.String[] endArgs,
boolean relentless,
ProgressMonitor monitor)
Compiles a source file. |
protected Parser |
createParser()
The include parser for C will work just fine,
but we didn't want to inherit from CommandLineCCompiler |
protected int |
getArgumentCountPerInputFile()
|
protected void |
getDefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define,
java.lang.String value)
|
protected java.io.File[] |
getEnvironmentIncludePath()
|
protected java.lang.String |
getIncludeDirSwitch(java.lang.String includeDir)
|
protected java.lang.String |
getInputFileArgument(java.io.File outputDir,
java.lang.String filename,
int index)
|
static BorlandResourceCompiler |
getInstance()
|
Linker |
getLinker(LinkType type)
Gets the linker that is associated with this processors |
protected int |
getMaximumInputFilesPerCommand()
|
protected int |
getTotalArgumentLengthForInputFile(java.io.File outputDir,
java.lang.String inputFile)
|
protected void |
getUndefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
getInstance
public static BorlandResourceCompiler getInstance()
createParser
protected Parser createParser()
- The include parser for C will work just fine,
but we didn't want to inherit from CommandLineCCompiler
- Overrides:
- createParser in class AbstractCompiler
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()
- Overrides:
- getMaximumInputFilesPerCommand in class CommandLineCompiler
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()
- Overrides:
- getArgumentCountPerInputFile in class CommandLineCompiler
getTotalArgumentLengthForInputFile
protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
java.lang.String inputFile)
- Overrides:
- getTotalArgumentLengthForInputFile in class CommandLineCompiler
getInputFileArgument
protected java.lang.String getInputFileArgument(java.io.File outputDir,
java.lang.String filename,
int index)
- Overrides:
- getInputFileArgument in class CommandLineCompiler
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
- Overrides:
- getEnvironmentIncludePath in class CommandLineCompiler
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
- Overrides:
- getIncludeDirSwitch in class CommandLineCompiler
getDefineSwitch
protected void getDefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define,
java.lang.String value)
- Overrides:
- getDefineSwitch in class CommandLineCompiler
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer,
java.lang.String define)
- Overrides:
- getUndefineSwitch in class CommandLineCompiler
addWarningSwitch
protected void addWarningSwitch(java.util.Vector args,
int level)
- Overrides:
- addWarningSwitch in class CommandLineCompiler
compile
public void compile(CCTask task,
java.io.File outputDir,
java.lang.String[] sourceFiles,
java.lang.String[] args,
java.lang.String[] endArgs,
boolean relentless,
ProgressMonitor monitor)
throws org.apache.tools.ant.BuildException
- Description copied from class: CommandLineCompiler
- Compiles a source file.
- Overrides:
- compile in class CommandLineCompiler
addImpliedArgs
protected void addImpliedArgs(java.util.Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType)
- Overrides:
- addImpliedArgs in class CommandLineCompiler
getLinker
public Linker getLinker(LinkType type)
- Description copied from interface: Processor
- Gets the linker that is associated with this processors
Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.