public final class CommandLineCompilerConfiguration extends Object implements CompilerConfiguration
Constructor and Description |
---|
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base,
String[] additionalArgs,
String[] exceptFiles,
boolean isPrecompileHeaderGeneration) |
CommandLineCompilerConfiguration(CommandLineCompiler compiler,
String identifier,
File[] includePath,
File[] sysIncludePath,
File[] envIncludePath,
String includePathIdentifier,
String[] args,
ProcessorParam[] params,
boolean rebuild,
String[] endArgs) |
CommandLineCompilerConfiguration(CommandLineCompiler compiler,
String identifier,
File[] includePath,
File[] sysIncludePath,
File[] envIncludePath,
String includePathIdentifier,
String[] args,
ProcessorParam[] params,
boolean rebuild,
String[] endArgs,
String commandPath) |
CommandLineCompilerConfiguration(CommandLineCompiler compiler,
String identifier,
File[] includePath,
File[] sysIncludePath,
File[] envIncludePath,
String includePathIdentifier,
String[] args,
ProcessorParam[] params,
boolean rebuild,
String[] endArgs,
String commandPath,
boolean useCcache) |
Modifier and Type | Method and Description |
---|---|
int |
bid(String inputFile)
An indication of how much this compiler would like to process this file
|
void |
compile(CCTask task,
File outputDir,
String[] sourceFiles,
boolean relentless,
ProgressMonitor monitor) |
CompilerConfiguration[] |
createPrecompileConfigurations(File prototype,
String[] nonPrecompiledFiles)
This method may be used to get two distinct compiler configurations, one
for compiling the specified file and producing a precompiled header
file, and a second for compiling other files using the precompiled
header file.
|
String |
getCommand() |
String |
getCommandPath() |
Compiler |
getCompiler() |
String[] |
getEndArguments() |
String |
getIdentifier()
Returns a string representation of this configuration.
|
File[] |
getIncludePath() |
String |
getIncludePathIdentifier()
Returns an digest for the include path for the configuration.
|
String[] |
getOutputFileNames(String inputFile,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
|
CompilerParam |
getParam(String name) |
ProcessorParam[] |
getParams() |
String[] |
getPreArguments() |
boolean |
getRebuild()
If true, all files using this configuration should be rebuilt and any
existing output files should be ignored
|
boolean |
isPrecompileGeneration() |
boolean |
isUseCcache() |
DependencyInfo |
parseIncludes(CCTask task,
File baseDir,
File source) |
void |
setCommandPath(String commandPath) |
String |
toString() |
public CommandLineCompilerConfiguration(CommandLineCompiler compiler, String identifier, File[] includePath, File[] sysIncludePath, File[] envIncludePath, String includePathIdentifier, String[] args, ProcessorParam[] params, boolean rebuild, String[] endArgs)
public CommandLineCompilerConfiguration(CommandLineCompiler compiler, String identifier, File[] includePath, File[] sysIncludePath, File[] envIncludePath, String includePathIdentifier, String[] args, ProcessorParam[] params, boolean rebuild, String[] endArgs, String commandPath)
public CommandLineCompilerConfiguration(CommandLineCompiler compiler, String identifier, File[] includePath, File[] sysIncludePath, File[] envIncludePath, String includePathIdentifier, String[] args, ProcessorParam[] params, boolean rebuild, String[] endArgs, String commandPath, boolean useCcache)
public CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base, String[] additionalArgs, String[] exceptFiles, boolean isPrecompileHeaderGeneration)
public int bid(String inputFile)
ProcessorConfiguration
bid
in interface ProcessorConfiguration
public void compile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
compile
in interface CompilerConfiguration
org.apache.tools.ant.BuildException
public CompilerConfiguration[] createPrecompileConfigurations(File prototype, String[] nonPrecompiledFiles)
createPrecompileConfigurations
in interface CompilerConfiguration
prototype
- A source file (for example, stdafx.cpp) that is used to build
the precompiled header file. @returns null if precompiled
headers are not supported or a two element array containing
the precompiled header generation configuration and the
consuming configurationpublic String getCommand()
public final String getCommandPath()
public Compiler getCompiler()
public String[] getEndArguments()
public String getIdentifier()
getIdentifier
in interface ProcessorConfiguration
public File[] getIncludePath()
public String getIncludePathIdentifier()
CompilerConfiguration
getIncludePathIdentifier
in interface CompilerConfiguration
public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo)
ProcessorConfiguration
getOutputFileNames
in interface ProcessorConfiguration
inputFile
- input filepublic CompilerParam getParam(String name)
getParam
in interface CompilerConfiguration
public ProcessorParam[] getParams()
getParams
in interface ProcessorConfiguration
public String[] getPreArguments()
public boolean getRebuild()
ProcessorConfiguration
getRebuild
in interface ProcessorConfiguration
public boolean isPrecompileGeneration()
isPrecompileGeneration
in interface CompilerConfiguration
public boolean isUseCcache()
public DependencyInfo parseIncludes(CCTask task, File baseDir, File source)
parseIncludes
in interface CompilerConfiguration
public final void setCommandPath(String commandPath)
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.