org.apache.tools.ant.taskdefs.optional.dotnet
public class JSharp extends DotnetCompile
J# is not Java. But it is the language closest to Java in the .NET framework. This task compiles jsharp source (.java files), and generates a .NET managed exe or dll.
For historical reasons the pattern
**/*.java is preset as includes list and
you can not override it with an explicit includes attribute. Use
nested <src> elements instead of the basedir
attribute if you need more control.
Since: ant1.6
See Also:
Visual J++ online documentation
UNKNOWN: category="dotnet" name="jsharpc"
| Constructor Summary | |
|---|---|
| JSharp() | |
| Method Summary | |
|---|---|
| protected void | addCompilerSpecificOptions(NetCommand command)
add jvc specific commands |
| protected String | createResourceParameter(DotnetResource resource)
from a resource, get the resource param |
| String | getFileExtension()
Get the extension of filenames to compile. |
| String | getReferenceDelimiter()
Get the delimiter that the compiler uses between references.
|
| void | setBaseAddress(String baseAddress) |
| void | setPureJava(boolean pureJava)
do we want pure java (default, true) or corrupted J#? |
| void | setSecureScoping(boolean secureScoping)
Make package scoped code visible to the current assembly only (default: false)
.NET does not have package scoping. |
| protected void | validate()
validation code |
Parameters: command
Parameters: resource
Returns: a string containing the resource param, or a null string to conditionally exclude a resource.
Returns: The string extension of files to compile.
Returns: The string delimiter for the reference string.
Parameters: pureJava
Parameters: secureScoping
Throws: org.apache.tools.ant.BuildException if validation failed