org.apache.tools.ant.taskdefs.optional.dotnet

Class JSharp

public class JSharp extends DotnetCompile

Compile J# source down to a managed .NET application.

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 voidaddCompilerSpecificOptions(NetCommand command)
add jvc specific commands
protected voidcreateResourceParameter(NetCommand command, DotnetResource resource)
StringgetFileExtension()
Get the extension of filenames to compile.
StringgetReferenceDelimiter()
Get the delimiter that the compiler uses between references.
voidsetBaseAddress(String baseAddress)
Set the base address attribute.
voidsetPureJava(boolean pureJava)
do we want pure java (default, true) or corrupted J#?
voidsetSecureScoping(boolean secureScoping)
Make package scoped code visible to the current assembly only (default: false) .NET does not have package scoping.
protected voidvalidate()
validation code

Constructor Detail

JSharp

public JSharp()
No arg constructor.

Method Detail

addCompilerSpecificOptions

protected void addCompilerSpecificOptions(NetCommand command)
add jvc specific commands

Parameters: command the command to add to.

createResourceParameter

protected void createResourceParameter(NetCommand command, DotnetResource resource)
{@inheritDoc }

getFileExtension

public String getFileExtension()
Get the extension of filenames to compile.

Returns: The string extension of files to compile.

getReferenceDelimiter

public String getReferenceDelimiter()
Get the delimiter that the compiler uses between references. For example, c# will return ";"; VB.NET will return ","

Returns: The string delimiter for the reference string.

setBaseAddress

public void setBaseAddress(String baseAddress)
Set the base address attribute.

Parameters: baseAddress the value to use.

setPureJava

public void setPureJava(boolean pureJava)
do we want pure java (default, true) or corrupted J#?

Parameters: pureJava a boolean value.

setSecureScoping

public void setSecureScoping(boolean secureScoping)
Make package scoped code visible to the current assembly only (default: false) .NET does not have package scoping. Instead it has assembly, private and public. By default, package content is public to all.

Parameters: secureScoping a boolean value.

validate

protected void validate()
validation code

Throws: org.apache.tools.ant.BuildException if validation failed