API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs.optional.dotnet. JSharp View Source
Author(s)
Since
ant1.6
Version
Serial
Hierarchy
 Object
      ProjectComponent
          Task
              MatchingTask
                  DotnetBaseMatchingTask
                      DotnetCompile
                          JSharp
Implements
Subclasses
Description
public class JSharp
  Compile J# source down to a managed .NET application.
Constructors
public JSharp ()
No arg constructor.
Methods
Hide/Show inherited methods
public void add (FileSelector selector) [Inherited From MatchingTask]
  add an arbitary selector
public void addAnd (AndSelector selector) [Inherited From MatchingTask]
  add an "And" selector entry on the selector list
protected void addCompilerSpecificOptions (NetCommand command) [Specified in DotnetCompile]
  add jvc specific commands
public void addContains (ContainsSelector selector) [Inherited From MatchingTask]
  add a contains selector entry on the selector list
public void addContainsRegexp (ContainsRegexpSelector selector) [Inherited From MatchingTask]
  add a regular expression selector entry on the selector list
public void addCustom (ExtendSelector selector) [Inherited From MatchingTask]
  add an extended selector entry on the selector list
public void addDate (DateSelector selector) [Inherited From MatchingTask]
  add a selector date entry on the selector list
public void addDefine (DotnetDefine define) [Inherited From DotnetCompile]
  add a define to the list of definitions
public void addDepend (DependSelector selector) [Inherited From MatchingTask]
  add a depends selector entry on the selector list
public void addDepth (DepthSelector selector) [Inherited From MatchingTask]
  add a depth selector entry on the selector list
public void addDifferent (DifferentSelector selector) [Inherited From MatchingTask]
  add a type selector entry on the type list
public void addFilename (FilenameSelector selector) [Inherited From MatchingTask]
  add a selector filename entry on the selector list
protected void addFilesAndExecute (NetCommand command, boolean ignoreTimestamps) [Inherited From DotnetBaseMatchingTask]
  finish off the command by adding all dependent files, execute
protected void addFilesToCommand (java.util.Hashtable filesToBuild, NetCommand command) [Inherited From DotnetBaseMatchingTask]
  add the list of files to a command
public void addMajority (MajoritySelector selector) [Inherited From MatchingTask]
  add a majority selector entry on the selector list
public void addModified (ModifiedSelector selector) [Inherited From MatchingTask]
  add the modified selector
public void addNone (NoneSelector selector) [Inherited From MatchingTask]
  add a "None" selector entry on the selector list
public void addNot (NotSelector selector) [Inherited From MatchingTask]
  add a "Not" selector entry on the selector list
public void addOr (OrSelector selector) [Inherited From MatchingTask]
  add an "Or" selector entry on the selector list
public void addPresent (PresentSelector selector) [Inherited From MatchingTask]
  add a present selector entry on the selector list
public void addReference (FileSet reference) [Inherited From DotnetCompile]
  add a new reference fileset to the compilation
protected int addReferenceFilesets (NetCommand command, long outputTimestamp) [Inherited From DotnetCompile]
  run through the list of reference files and add them to the command
public void addResource (DotnetResource resource) [Inherited From DotnetCompile]
  link or embed a resource
protected void addResources (NetCommand command) [Inherited From DotnetCompile]
  for every resource declared, we get the (language specific) resource setting
public void addSelector (SelectSelector selector) [Inherited From MatchingTask]
  add a "Select" selector entry on the selector list
public void addSize (SizeSelector selector) [Inherited From MatchingTask]
  add a selector size entry on the selector list
public void addSrc (FileSet src) [Inherited From DotnetBaseMatchingTask]
  add a new source directory to the compile
public void addType (TypeSelector selector) [Inherited From MatchingTask]
  add a type selector entry on the type list
public void appendSelector (FileSelector selector) [Inherited From MatchingTask]
  Add a new selector into this container.
publicfinal void bindToOwner (Task owner) [Inherited From Task]
  Bind a task to another; use this when configuring a newly created task to do work on behalf of another.
protected int buildFileList (NetCommand command, java.util.Hashtable filesToBuild, long outputTimestamp) [Inherited From DotnetBaseMatchingTask]
  create the list of files
public void clear () [Inherited From DotnetCompile]
reset all contents.
public java.lang.Object clone () throws java.lang.CloneNotSupportedException [Inherited From ProjectComponent]
 
public NameEntry createExclude () [Inherited From MatchingTask]
  add a name entry on the exclude list
public NameEntry createExcludesFile () [Inherited From MatchingTask]
  add a name entry on the include files list
public NameEntry createInclude () [Inherited From MatchingTask]
  add a name entry on the include list
public NameEntry createIncludesFile () [Inherited From MatchingTask]
  add a name entry on the include files list
protected NetCommand createNetCommand () [Inherited From DotnetCompile]
  create our helper command
public PatternSet createPatternSet () [Inherited From MatchingTask]
  add a set of patterns
protected void createResourceParameter (NetCommand command, DotnetResource resource) [Specified in DotnetCompile]
Build a C# style parameter.
public void execute () throws BuildException [Inherited From DotnetCompile]
  do the work by building the command line and then calling it
protected void fillInSharedParameters (NetCommand command) [Inherited From DotnetCompile]
  fill in the common information
protected java.lang.String getAdditionalModulesParameter () [Inherited From DotnetCompile]
  get the argument or null for no argument needed
public boolean getDebug () [Inherited From DotnetCompile]
  query the debug flag
protected java.lang.String getDebugParameter () [Inherited From DotnetCompile]
  get the debug switch argument
public java.lang.String getDefinitionsDelimiter () [Inherited From DotnetCompile]
  override point for delimiting definitions.
protected java.lang.String getDefinitionsParameter () throws BuildException [Inherited From DotnetCompile]
  get a list of definitions or null
public java.lang.String getDescription () [Inherited From ProjectComponent]
  Returns the description of the current action.
public java.io.File getDestFile () [Inherited From DotnetBaseMatchingTask]
  get the destination file
protected java.lang.String getDestFileParameter () [Inherited From DotnetCompile]
  get the argument or null for no argument needed
protected DirectoryScanner getDirectoryScanner (java.io.File baseDir) [Inherited From MatchingTask]
  Returns the directory scanner needed to access the files to process.
protected java.lang.String getExecutable () [Inherited From DotnetCompile]
  This method gets the name of the executable.
public java.lang.String getExtraOptions () [Inherited From DotnetCompile]
  Gets the ExtraOptions attribute
protected java.lang.String getExtraOptionsParameter () [Inherited From DotnetCompile]
  get any extra options or null for no argument needed
protected java.lang.String getExtraOptionsParameters () [Inherited From DotnetCompile]
  get any extra options or null for no argument needed, split them if they represent multiple options.
public boolean getFailOnError () [Inherited From DotnetCompile]
  query fail on error flag
public java.lang.String getFileExtension () [Specified in DotnetCompile]
  Get the extension of filenames to compile.
public java.lang.String getFilePattern () [Inherited From DotnetCompile]
  Get the pattern for files to compile.
protectedfinal FileSet getImplicitFileSet () [Inherited From MatchingTask]
  Accessor for the implicit fileset.
public boolean getIncludeDefaultReferences () [Inherited From DotnetCompile]
  query automatic reference inclusion flag
protected java.lang.String getIncludeDefaultReferencesParameter () [Inherited From DotnetCompile]
  get the include default references flag or null for no argument needed
public Location getLocation () [Inherited From ProjectComponent]
  Returns the file/location where this task was defined.
public java.lang.String getMainClass () [Inherited From DotnetCompile]
  Gets the MainClass attribute
protected java.lang.String getMainClassParameter () [Inherited From DotnetCompile]
  get the /main argument or null for no argument needed
public boolean getOptimize () [Inherited From DotnetCompile]
  query the optimise flag
protected java.lang.String getOptimizeParameter () [Inherited From DotnetCompile]
  get the optimise flag or null for no argument needed
protected long getOutputFileTimestamp () [Inherited From DotnetBaseMatchingTask]
  determine the timestamp of the output file
public Target getOwningTarget () [Inherited From Task]
  Returns the container target of this task.
public Project getProject () [Inherited From ProjectComponent]
  Returns the project to which this component belongs.
public java.lang.String getReferenceDelimiter () [Specified in DotnetCompile]
  Get the delimiter that the compiler uses between references.
protected java.lang.String getReferenceFilesParameter () [Inherited From DotnetCompile]
  turn the path list into a list of files and a /references argument
protected java.lang.String getReferencesParameter () [Inherited From DotnetCompile]
  get the reference string or null for no argument needed
public RuntimeConfigurable getRuntimeConfigurableWrapper () [Inherited From Task]
  Returns the wrapper used for runtime configuration.
public FileSelector getSelectors (Project p) [Inherited From MatchingTask]
  Returns the set of selectors as an array.
public java.io.File getSrcDir () [Inherited From DotnetBaseMatchingTask]
  Overridden because we need to be able to set the srcDir.
public java.lang.String getTargetType () [Inherited From DotnetCompile]
  Gets the TargetType attribute
protected java.lang.String getTargetTypeParameter () [Inherited From DotnetCompile]
  get the argument or null for no argument needed
public java.lang.String getTaskName () [Inherited From Task]
  Returns the name to use in logging messages.
public java.lang.String getTaskType () [Inherited From Task]
  Return the type of task.
protected java.lang.String getUtf8OutputParameter () [Inherited From DotnetCompile]
  Gets the utf8OutpuParameter attribute of the CSharp object
public int getWarnLevel () [Inherited From DotnetCompile]
  query warn level
protected java.lang.String getWarnLevelParameter () [Inherited From DotnetCompile]
  get the warn level switch
protected java.lang.String getWin32IconParameter () [Inherited From DotnetCompile]
  get the argument or null for no argument needed
public java.io.File getWin32Res () [Inherited From DotnetCompile]
  Gets the file of the win32 .res file to include.
protected java.lang.String getWin32ResParameter () [Inherited From DotnetCompile]
  get the argument or null for no argument needed
protected RuntimeConfigurable getWrapper () [Inherited From Task]
  Return the runtime configurable structure for this task.
protected void handleErrorFlush (java.lang.String output) [Inherited From Task]
  Handles an error line by logging it with the WARN priority.
protected void handleErrorOutput (java.lang.String output) [Inherited From Task]
  Handles an error output by logging it with the WARN priority.
protected void handleFlush (java.lang.String output) [Inherited From Task]
  Handles output by logging it with the INFO priority.
protected int handleInput (byte[] buffer, int offset, int length) throws java.io.IOException [Inherited From Task]
  Handle an input request by this task.
protected void handleOutput (java.lang.String output) [Inherited From Task]
  Handles output by logging it with the INFO priority.
public boolean hasSelectors () [Inherited From MatchingTask]
  Indicates whether there are any selectors here.
public void init () throws BuildException [Inherited From Task]
  Called by the project to let the task initialize properly.
protectedstatic boolean isFileManagedBinary (java.io.File file) [Inherited From DotnetCompile]
  test for a file being managed or not
protectedfinal boolean isInvalid () [Inherited From Task]
  Has this task been marked invalid?
public boolean isUseResponseFile () [Inherited From DotnetCompile]
  getter for flag
public void log (java.lang.String msg) [Inherited From Task]
  Logs a message with the default (INFO) priority.
public void log (java.lang.String msg, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void log (java.lang.String msg, java.lang.Throwable t, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void log (java.lang.Throwable t, int msgLevel) [Inherited From Task]
  Logs a message with the given priority.
public void maybeConfigure () throws BuildException [Inherited From Task]
  Configures this task - if it hasn't been done already.
protected boolean notEmpty (java.lang.String s) [Inherited From DotnetCompile]
  test for a string containing something useful
publicfinal void perform () [Inherited From Task]
  Performs this task if it's still valid, or gets a replacement version and performs that otherwise.
public void reconfigure () [Inherited From Task]
Force the task to be reconfigured from its RuntimeConfigurable.
public int selectorCount () [Inherited From MatchingTask]
  Gives the count of the number of selectors in this container
public java.util.Enumeration selectorElements () [Inherited From MatchingTask]
  Returns an enumerator for accessing the set of selectors.
public void setAdditionalModules (java.lang.String params) [Inherited From DotnetCompile]
  Semicolon separated list of modules to refer to.
public void setBaseAddress (java.lang.String baseAddress)
  Set the base address attribute.
public void setCaseSensitive (boolean isCaseSensitive) [Inherited From MatchingTask]
  Sets case sensitivity of the file system
public void setDebug (boolean f) [Inherited From DotnetCompile]
  set the debug flag on or off.
public void setDefaultexcludes (boolean useDefaultExcludes) [Inherited From MatchingTask]
  Sets whether default exclusions should be used or not.
public void setDescription (java.lang.String desc) [Inherited From ProjectComponent]
  Sets a description of the current action.
public void setDestDir (java.io.File dirName) [Inherited From DotnetCompile]
  Set the destination directory of files to be compiled.
public void setDestFile (java.io.File file) [Inherited From DotnetBaseMatchingTask]
  Set the name of exe/library to create.
public void setExcludes (java.lang.String excludes) [Inherited From MatchingTask]
  Sets the set of exclude patterns.
public void setExcludesfile (java.io.File excludesfile) [Inherited From MatchingTask]
  Sets the name of the file containing the includes patterns.
public void setExecutable (java.lang.String executable) [Inherited From DotnetCompile]
  set the name of the program, overriding the defaults.
public void setExtraOptions (java.lang.String extraOptions) [Inherited From DotnetCompile]
  Any extra options which are not explicitly supported by this task.
public void setFailOnError (boolean b) [Inherited From DotnetCompile]
  If true, fail on compilation errors.
public void setFollowSymlinks (boolean followSymlinks) [Inherited From MatchingTask]
  Sets whether or not symbolic links should be followed.
public void setIncludeDefaultReferences (boolean f) [Inherited From DotnetCompile]
  If true, automatically includes the common assemblies in dotnet, and tells the compiler to link in mscore.dll.
public void setIncludes (java.lang.String includes) [Inherited From MatchingTask]
  Sets the set of include patterns.
public void setIncludesfile (java.io.File includesfile) [Inherited From MatchingTask]
  Sets the name of the file containing the includes patterns.
public void setLocation (Location location) [Inherited From ProjectComponent]
  Sets the file/location where this task was defined.
public void setMainClass (java.lang.String mainClass) [Inherited From DotnetCompile]
  Sets the name of main class for executables.
public void setOptimize (boolean f) [Inherited From DotnetCompile]
  If true, enables optimization flag.
public void setOwningTarget (Target target) [Inherited From Task]
  Sets the target container of this task.
public void setProject (Project project) [Inherited From MatchingTask]
  Sets the project object of this component..
public void setPureJava (boolean pureJava)
  do we want pure java (default, true) or corrupted J#?
public void setReferenceFiles (Path path) [Inherited From DotnetCompile]
  Path of references to include.
public void setReferences (java.lang.String s) [Inherited From DotnetCompile]
  Semicolon separated list of DLLs to refer to.
public void setRuntimeConfigurableWrapper (RuntimeConfigurable wrapper) [Inherited From Task]
  Sets the wrapper to be used for runtime configuration.
public void setSecureScoping (boolean secureScoping)
  Make package scoped code visible to the current assembly only (default: false) .NET does not have package scoping.
public void setSrcDir (java.io.File srcDirName) [Inherited From DotnetBaseMatchingTask]
  Set the source directory of the files to be compiled.
public void setTargetType (TargetTypes targetType) [Inherited From DotnetCompile]
  set the target type to one of exe|library|module|winexe
public void setTargetType (java.lang.String ttype) throws BuildException [Inherited From DotnetCompile]
  Set the type of target.
public void setTaskName (java.lang.String name) [Inherited From Task]
  Sets the name to use in logging messages.
public void setTaskType (java.lang.String type) [Inherited From Task]
  Sets the name with which the task has been invoked.
public void setUseResponseFile (boolean useResponseFile) [Inherited From DotnetCompile]
  Flag to turn on response file use; default=false.
public void setUtf8Output (boolean enabled) [Inherited From DotnetCompile]
  If true, require all compiler output to be in UTF8 format.
public void setWarnLevel (int warnLevel) [Inherited From DotnetCompile]
  Level of warning currently between 1 and 4 with 4 being the strictest.
public void setWin32Icon (java.io.File fileName) [Inherited From DotnetCompile]
  Set the filename of icon to include.
public void setWin32Res (java.io.File fileName) [Inherited From DotnetCompile]
  Sets the filename of a win32 resource (.RES) file to include.
protected void validate () throws BuildException [Overrides DotnetCompile]
  validation code
public void XsetIgnore (java.lang.String ignoreString) [Inherited From MatchingTask]
  List of filenames and directory names to not include.
public void XsetItems (java.lang.String itemString) [Inherited From MatchingTask]
  Set this to be the items in the base directory that you want to be included.
Fields
Hide/Show inherited fields
protected java.lang.String additionalModules [Inherited From DotnetCompile]
list of extra modules to refer to
pack-private java.lang.String baseAddress
hex base address
protected boolean debug [Inherited From DotnetCompile]
  debug flag.
protected java.util.Vector definitionList [Inherited From DotnetCompile]
a list of definitions to support;
protected java.lang.String description [Inherited From ProjectComponent]
Description of this component, if any.
protected java.lang.String executable [Inherited From DotnetCompile]
executable
protected java.lang.String extraOptions [Inherited From DotnetCompile]
any extra command options?
protected FileSet fileset [Inherited From MatchingTask]
protected java.util.Vector filesets [Inherited From DotnetBaseMatchingTask]
filesets of file to compile
protectedfinalstatic boolean isWindows [Inherited From DotnetBaseMatchingTask]
  Are we running on Windows?
protected Location location [Inherited From ProjectComponent]
Location within the build file of this task definition.
protected java.lang.String mainClass [Inherited From DotnetCompile]
main class (or null for automatic choice)
protected java.io.File outputFile [Inherited From DotnetBaseMatchingTask]
  output file.
protected Project project [Inherited From ProjectComponent]
Project object of this component.
pack-private boolean pureJava
/x option to disable J++ and J# lang extensions
protectedfinalstatic java.lang.String REFERENCE_OPTION = "/reference:" [Inherited From DotnetCompile]
protected java.util.Vector referenceFilesets [Inherited From DotnetCompile]
filesets of references
protected java.util.Vector resources [Inherited From DotnetCompile]
our resources
pack-private boolean secureScoping
whether to make package scoped stuff public or assembly scoped
protected java.io.File srcDir [Inherited From DotnetBaseMatchingTask]
source directory upon which the search pattern is applied
protected Target target [Inherited From Task]
Target this task belongs to, if any.
protected java.lang.String targetType [Inherited From DotnetCompile]
  type of target.
protected java.lang.String taskName [Inherited From Task]
  Name of this task to be used for logging purposes.
protected java.lang.String taskType [Inherited From Task]
Type of this task.
protected boolean utf8output [Inherited From DotnetCompile]
utf out flag
protected RuntimeConfigurable wrapper [Inherited From Task]
Wrapper for this object, used to configure it at runtime.
Nested Classes
  DotnetCompile.TargetTypes
Target types to build.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar