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() No arg constructor. | |
| Method Summary | |
|---|---|
| protected void | addCompilerSpecificOptions(NetCommand command)
add jvc specific commands |
| protected void | createResourceParameter(NetCommand command, DotnetResource resource) |
| String | getFileExtension()
Get the extension of filenames to compile. |
| String | getReferenceDelimiter()
Get the delimiter that the compiler uses between references.
|
| void | setBaseAddress(String baseAddress)
Set the base address attribute. |
| 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 the command to add to.
Returns: The string extension of files to compile.
Returns: The string delimiter for the reference string.
Parameters: baseAddress the value to use.
Parameters: pureJava a boolean value.
Parameters: secureScoping a boolean value.
Throws: org.apache.tools.ant.BuildException if validation failed