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)
ProcessorConfigurationbid in interface ProcessorConfigurationpublic void compile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
compile in interface CompilerConfigurationorg.apache.tools.ant.BuildExceptionpublic CompilerConfiguration[] createPrecompileConfigurations(File prototype, String[] nonPrecompiledFiles)
createPrecompileConfigurations in interface CompilerConfigurationprototype - 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 ProcessorConfigurationpublic File[] getIncludePath()
public String getIncludePathIdentifier()
CompilerConfigurationgetIncludePathIdentifier in interface CompilerConfigurationpublic String[] getOutputFileNames(String inputFile, VersionInfo versionInfo)
ProcessorConfigurationgetOutputFileNames in interface ProcessorConfigurationinputFile - input filepublic CompilerParam getParam(String name)
getParam in interface CompilerConfigurationpublic ProcessorParam[] getParams()
getParams in interface ProcessorConfigurationpublic String[] getPreArguments()
public boolean getRebuild()
ProcessorConfigurationgetRebuild in interface ProcessorConfigurationpublic boolean isPrecompileGeneration()
isPrecompileGeneration in interface CompilerConfigurationpublic boolean isUseCcache()
public DependencyInfo parseIncludes(CCTask task, File baseDir, File source)
parseIncludes in interface CompilerConfigurationpublic final void setCommandPath(String commandPath)
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.