public final class CommandLineCompilerConfiguration extends Object implements CompilerConfiguration
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ProcessorConfigurationpublic void compile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
compile 在接口中 CompilerConfigurationorg.apache.tools.ant.BuildExceptionpublic CompilerConfiguration[] createPrecompileConfigurations(File prototype, String[] nonPrecompiledFiles)
createPrecompileConfigurations 在接口中 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 在接口中 ProcessorConfigurationpublic File[] getIncludePath()
public String getIncludePathIdentifier()
CompilerConfigurationpublic String[] getOutputFileNames(String inputFile, VersionInfo versionInfo)
ProcessorConfigurationgetOutputFileNames 在接口中 ProcessorConfigurationinputFile - input filepublic CompilerParam getParam(String name)
getParam 在接口中 CompilerConfigurationpublic ProcessorParam[] getParams()
getParams 在接口中 ProcessorConfigurationpublic String[] getPreArguments()
public boolean getRebuild()
ProcessorConfigurationgetRebuild 在接口中 ProcessorConfigurationpublic boolean isPrecompileGeneration()
isPrecompileGeneration 在接口中 CompilerConfigurationpublic boolean isUseCcache()
public DependencyInfo parseIncludes(CCTask task, File baseDir, File source)
parseIncludes 在接口中 CompilerConfigurationpublic final void setCommandPath(String commandPath)
Copyright © 2005-2017 NAR Maven Plugin developers. All Rights Reserved.