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.
DotnetCompile.TargetTypesadditionalModules, debug, definitionList, executable, extraOptions, mainClass, REFERENCE_OPTION, referenceFilesets, resources, targetType, utf8outputfilesets, isWindows, outputFile, srcDirfilesetdescription, location, project| Constructor and Description |
|---|
JSharp()
No arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompilerSpecificOptions(NetCommand command)
add jvc specific commands
|
protected void |
createResourceParameter(NetCommand command,
DotnetResource resource)
Build a C# style parameter.
|
java.lang.String |
getFileExtension()
Get the extension of filenames to compile.
|
java.lang.String |
getReferenceDelimiter()
Get the delimiter that the compiler uses between references.
|
void |
setBaseAddress(java.lang.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
|
addDefine, addReference, addReferenceFilesets, addResource, addResources, clear, createNetCommand, execute, fillInSharedParameters, getAdditionalModulesParameter, getDebug, getDebugParameter, getDefinitionsDelimiter, getDefinitionsParameter, getDestFileParameter, getExecutable, getExtraOptions, getExtraOptionsParameter, getExtraOptionsParameters, getFailOnError, getFilePattern, getIncludeDefaultReferences, getIncludeDefaultReferencesParameter, getMainClass, getMainClassParameter, getOptimize, getOptimizeParameter, getReferenceFilesParameter, getReferencesParameter, getTargetType, getTargetTypeParameter, getUtf8OutputParameter, getWarnLevel, getWarnLevelParameter, getWin32IconParameter, getWin32Res, getWin32ResParameter, isFileManagedBinary, isUseResponseFile, notEmpty, setAdditionalModules, setDebug, setDestDir, setExecutable, setExtraOptions, setFailOnError, setIncludeDefaultReferences, setMainClass, setOptimize, setReferenceFiles, setReferences, setTargetType, setTargetType, setUseResponseFile, setUtf8Output, setWarnLevel, setWin32Icon, setWin32ResaddFilesAndExecute, addFilesToCommand, addSrc, buildFileList, getDestFile, getOutputFileTimestamp, getSrcDir, setDestFile, setSrcDiradd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocationpublic void setBaseAddress(java.lang.String baseAddress)
baseAddress - the value to use.public void setPureJava(boolean pureJava)
pureJava - a boolean value.public void setSecureScoping(boolean secureScoping)
secureScoping - a boolean value.public java.lang.String getReferenceDelimiter()
getReferenceDelimiter in class DotnetCompilepublic java.lang.String getFileExtension()
getFileExtension in class DotnetCompileprotected void addCompilerSpecificOptions(NetCommand command)
addCompilerSpecificOptions in class DotnetCompilecommand - the command to add to.protected void createResourceParameter(NetCommand command, DotnetResource resource)
createResourceParameter in class DotnetCompilecommand - the command.resource - the resource.protected void validate()
throws BuildException
validate in class DotnetCompileBuildException - if validation failed