Jsharpc Task Compile J# source down to a managed .NET application. 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. |

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 - note that your version of vjc may not support this option. | Semicolon separated list of modules to refer to. | 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

Parameters as nested elements

> define (org.apache.tools.ant.taskdefs.optional.dotnet.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.tools.ant.taskdefs.optional.dotnet.DotnetResource)

> > link or embed a resource

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

> > add a new source directory to the compile