Methods Summary |
---|
protected void | addCompilerSpecificOptions(NetCommand command)implement VBC commands
command.addArgument(getRemoveIntChecksParameter());
command.addArgument(getImportsParameter());
command.addArgument(getOptionExplicitParameter());
command.addArgument(getOptionStrictParameter());
command.addArgument(getRootNamespaceParameter());
command.addArgument(getOptionCompareParameter());
|
public void | clear()reset all contents.
super.clear();
imports = null;
rootNamespace = null;
optionCompare = null;
optionExplicit = false;
optionStrict = false;
removeIntChecks = false;
setExecutable("vbc");
|
protected void | createResourceParameter(NetCommand command, DotnetResource resource){@inheritDoc}
resource.getParameters(getProject(), command, false);
|
public java.lang.String | getFileExtension()Get the extension of filenames to compile.
return "vb";
|
public java.lang.String | getImports()Get global imports for namespaces in referenced metadata files.
return this.imports;
|
protected java.lang.String | getImportsParameter()Format the option for imports.
if (imports != null && imports.length() != 0) {
return "/imports:" + imports;
} else {
return null;
}
|
public java.lang.String | getOptionCompare()"binary" or "text" for the string-comparison style.
return this.optionCompare;
|
protected java.lang.String | getOptionCompareParameter()Format the option for string comparison style.
if (optionCompare != null && "text".equalsIgnoreCase(optionCompare)) {
return "/optioncompare:text";
} else {
return "/optioncompare:binary";
}
|
public boolean | getOptionExplicit()Get the flag for whether to require explicit declaration of variables.
return optionExplicit;
|
public java.lang.String | getOptionExplicitParameter()Form the option string for optionExplicit..
return "/optionexplicit" + (optionExplicit ? "+" : "-");
|
public boolean | getOptionStrict()Get the flag for whether to enforce strict language semantics.
return optionStrict;
|
public java.lang.String | getOptionStrictParameter()For the option string for optionStrict.
return "/optionstrict" + (optionStrict ? "+" : "-");
|
public java.lang.String | getReferenceDelimiter()Get the delimiter that the compiler uses between references.
For example, c# will return ";"; VB.NET will return ","
return ",";
|
public boolean | getRemoveIntChecks()Get the flag for removing integer checks.
return removeIntChecks;
|
public java.lang.String | getRemoveIntChecksParameter()Form the option string for removeIntChecks.
return "/removeintchecks" + (removeIntChecks ? "+" : "-");
|
public java.lang.String | getRootNamespace()Get the root namespace.
return this.rootNamespace;
|
protected java.lang.String | getRootNamespaceParameter()Form the option string for rootNamespace.
if (rootNamespace != null && rootNamespace.length() != 0) {
return "/rootnamespace:" + rootNamespace;
} else {
return null;
}
|
protected java.lang.String | getWin32ResParameter()get the argument or null for no argument needed
This is overridden from DotnetCompile.java because VBC uses
"/win32resource:" rather than "/win32res:"
if (getWin32Res() != null) {
return "/win32resource:" + getWin32Res().toString();
} else {
return null;
}
|
public void | setImports(java.lang.String imports)Declare global imports for namespaces in referenced metadata files.
this.imports = imports;
|
public void | setOptionCompare(java.lang.String optionCompare)Specify binary- or text-style string comparisons. Defaults
to "binary"
if ("text".equalsIgnoreCase(optionCompare)) {
this.optionCompare = "text";
} else {
this.optionCompare = "binary";
}
|
public void | setOptionExplicit(boolean flag)Whether to require explicit declaration of variables.
optionExplicit = flag;
|
public void | setOptionStrict(boolean flag)Enforce strict language semantics.
optionStrict = flag;
|
public void | setRemoveIntChecks(boolean flag)Whether to remove integer checks. Default false.
removeIntChecks = flag;
|
public void | setRootNamespace(java.lang.String rootNamespace)Specifies the root namespace for all type declarations.
this.rootNamespace = rootNamespace;
|
protected void | validate()validation code
super.validate();
if (getDestFile() == null) {
throw new BuildException("DestFile was not specified");
}
|