Methods Summary |
---|
public void | addCompilerSpecificOptions(NetCommand command)add Commands unique to C#.
command.addArgument(getIncludeDefaultReferencesParameter());
command.addArgument(getWarnLevelParameter());
command.addArgument(getDocFileParameter());
command.addArgument(getFullPathsParameter());
command.addArgument(getFileAlignParameter());
command.addArgument(getIncrementalParameter());
command.addArgument(getNoConfigParameter());
command.addArgument(getUnsafeParameter());
|
public void | clear()full cleanup
super.clear();
docFile = null;
fileAlign = 0;
fullpaths = true;
incremental = false;
unsafe = false;
noconfig = false;
definitions = null;
setExecutable(isWindows ? "csc" : "mcs");
|
protected void | createResourceParameter(NetCommand command, DotnetResource resource)Build a C# style parameter.
resource.getParameters(getProject(), command, true);
|
protected java.lang.String | getDefinitionsParameter()override the superclasses version of this method (which we call)
with a check for a definitions attribute, the contents of which
are appended to the list.
String predecessors = super.getDefinitionsParameter();
if (notEmpty(definitions)) {
if (predecessors == null) {
predecessors = "/define:";
}
return predecessors + definitions;
} else {
return predecessors;
}
|
protected java.lang.String | getDocFileParameter()get the argument or null for no argument needed
if (docFile != null) {
return "/doc:" + docFile.toString();
} else {
return null;
}
|
protected java.lang.String | getFileAlignParameter()get the argument or null for no argument needed
if (fileAlign != 0 && !"mcs".equals(getExecutable())) {
return "/filealign:" + fileAlign;
} else {
return null;
}
|
public java.lang.String | getFileExtension()This method indicates the filename extension for C# files.
return "cs";
|
protected java.lang.String | getFullPathsParameter()Gets the fullPathsParameter attribute of the CSharp object
return fullpaths ? "/fullpaths" : null;
|
public boolean | getIncremental()query the incrementalflag
return incremental;
|
protected java.lang.String | getIncrementalParameter()get the incremental build argument
return "/incremental" + (incremental ? "+" : "-");
|
protected java.lang.String | getNoConfigParameter()Gets the noConfigParameter attribute of the CSharp object
return noconfig ? "/noconfig" : null;
|
public java.lang.String | getReferenceDelimiter()Returns the delimiter which C# uses to separate references, i.e., a semi colon.
return ";";
|
public boolean | getUnsafe()query the Unsafe attribute
return this.unsafe;
|
protected java.lang.String | getUnsafeParameter()get the argument or null for no argument needed
return unsafe ? "/unsafe" : null;
|
public void | setDefinitions(java.lang.String params)Semicolon separated list of defined constants.
definitions = params;
|
public void | setDocFile(java.io.File f)file for generated XML documentation
docFile = f;
|
public void | setFileAlign(int fileAlign)Set the file alignment.
Valid values are 0,512, 1024, 2048, 4096, 8192,
and 16384, 0 means 'leave to the compiler'
this.fileAlign = fileAlign;
|
public void | setFullPaths(boolean enabled)If true, print the full path of files on errors.
fullpaths = enabled;
|
public void | setIncremental(boolean incremental)set the incremental compilation flag on or off.
this.incremental = incremental;
|
public void | setNoConfig(boolean enabled)A flag that tells the compiler not to read in the compiler
settings files 'csc.rsp' in its bin directory and then the local directory
noconfig = enabled;
|
public void | setOutputFile(java.io.File params)The output file. This is identical to the destFile attribute.
setDestFile(params);
|
public void | setUnsafe(boolean unsafe)If true, enables the unsafe keyword.
this.unsafe = unsafe;
|