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()
Method Summary
protected voidaddCompilerSpecificOptions(NetCommand command)
add jvc specific commands
protected StringcreateResourceParameter(DotnetResource resource)
from a resource, get the resource param
StringgetFileExtension()
Get the extension of filenames to compile.
StringgetReferenceDelimiter()
Get the delimiter that the compiler uses between references.
voidsetBaseAddress(String baseAddress)
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()

Method Detail

addCompilerSpecificOptions

protected void addCompilerSpecificOptions(NetCommand command)
add jvc specific commands

Parameters: command

createResourceParameter

protected String createResourceParameter(DotnetResource resource)
from a resource, get the resource param

Parameters: resource

Returns: a string containing the resource param, or a null string to conditionally exclude a resource.

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)

setPureJava

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

Parameters: pureJava

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

validate

protected void validate()
validation code

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

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.