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.TargetTypes
additionalModules, debug, definitionList, executable, extraOptions, mainClass, REFERENCE_OPTION, referenceFilesets, resources, targetType, utf8output
filesets, isWindows, outputFile, srcDir
Constructor and Description |
---|
JSharp() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCompilerSpecificOptions(NetCommand command)
add jvc specific commands
|
protected void |
createResourceParameter(NetCommand command,
DotnetResource resource) |
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) |
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, setWin32Res
addFilesAndExecute, addFilesToCommand, addSrc, buildFileList, getDestFile, getOutputFileTimestamp, getSrcDir, setDestFile, setSrcDir
add, 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, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setBaseAddress(java.lang.String baseAddress)
public void setPureJava(boolean pureJava)
pureJava
- public void setSecureScoping(boolean secureScoping)
secureScoping
- public java.lang.String getReferenceDelimiter()
getReferenceDelimiter
in class DotnetCompile
public java.lang.String getFileExtension()
getFileExtension
in class DotnetCompile
protected void addCompilerSpecificOptions(NetCommand command)
addCompilerSpecificOptions
in class DotnetCompile
command
- protected void createResourceParameter(NetCommand command, DotnetResource resource)
createResourceParameter
in class DotnetCompile
protected void validate() throws org.apache.tools.ant.BuildException
validate
in class DotnetCompile
org.apache.tools.ant.BuildException
- if validation failed