Jsharpc Task

Description

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.

Parameters

Attribute Description Type Requirement
additionalmodules Semicolon separated list of modules to refer to - note that your version of vjc may not support this option. String Optional
baseaddress String
debug set the debug flag on or off. boolean
destdir Set the destination directory of files to be compiled. File
destfile Set the name of exe/library to create. File
executable set the name of the program, overriding the defaults. Can be used to set the full path to a program, or to switch to an alternate implementation of the command, such as the Mono or Rotor versions -provided they use the same command line arguments as the .NET framework edition String
extraoptions Any extra options which are not explicitly supported by this task. String
failonerror If true, fail on compilation errors. boolean
includedefaultreferences If true, automatically includes the common assemblies in dotnet, and tells the compiler to link in mscore.dll. set the automatic reference inclusion flag on or off this flag controls the /nostdlib option in CSC boolean
mainclass Sets the name of main class for executables. String
optimize If true, enables optimization flag. boolean
purejava do we want pure java (default, true) or corrupted J#? boolean
referencefiles Path of references to include. Wildcards should work. Path
references Semicolon separated list of DLLs to refer to. String
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. boolean
srcdir Set the source directory of the files to be compiled. File
targettype set the target type to one of exe|library|module|winexe "exe", "library", "module", "winexe"
utf8output If true, require all compiler output to be in UTF8 format. boolean
warnlevel Level of warning currently between 1 and 4 with 4 being the strictest. int
win32icon Set the filename of icon to include. File
win32res Sets the filename of a win32 resource (.RES) file to include. This is not a .NET resource, but what Windows is used to. File
useresponsefile Sets whether a response file instead of a command line only invocation should be used. Defaults to false but Ant will still use a response file if more than 64 command line arguments would be used. boolean

Parameters as nested elements

define (org.apache.ant.dotnet.compile.DotnetDefine)

add a define to the list of definitions

reference (org.apache.tools.ant.types.FileSet)

add a new reference fileset to the compilation

resource (org.apache.ant.dotnet.compile.DotnetResource)

link or embed a resource

src (org.apache.tools.ant.types.FileSet)

add a new source directory to the compile