Java Doc for Ilasm.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » dotnet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional.dotnet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
   org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm

Ilasm
public class Ilasm extends DotnetBaseMatchingTask (Code)
Assembles .NET Intermediate Language files. ilasm.exe must be on the execute path, unless another executable or the full path to that executable is specified in the executable parameter

All parameters are optional: <il/> should suffice to produce a debug build of all *.il files. The option set is roughly compatible with the CSharp class; even though the command line options are only vaguely equivalent. [The low level commands take things like /OUT=file, csc wants /out:file ... /verbose is used some places; /quiet here in ildasm... etc.] It would be nice if someone made all the command line tools consistent (and not as brittle as the java cmdline tools)

The task is a directory based task, so attributes like includes="*.il" and excludes="broken.il" can be used to control the files pulled in. You can also use nested <src> filesets to refer to source.


Inner Class :public static class TargetTypes extends EnumeratedAttribute

Field Summary
protected  booleandebug
     debug flag.
final protected static  Stringexe_name
     Name of the executable.
final protected static  Stringexe_title
    
protected  StringextraOptions
    
protected  booleanfailOnError
    
final protected static  Stringfile_ext
    
final protected static  Stringfile_pattern
    
protected  booleanlisting
    
protected  VectorreferenceFilesets
    
protected  FileresourceFile
     resource file (.res format) to include in the app.
protected  StringtargetType
     type of target.
protected  booleanverbose
    

Constructor Summary
public  Ilasm()
    

Method Summary
public  voidClear()
     reset all contents.
public  voidaddReference(FileSet reference)
    
public  voidexecute()
     This is the execution entry point.
public  booleangetDebug()
    
protected  StringgetDebugParameter()
    
public  StringgetExtraOptions()
    
protected  StringgetExtraOptionsParameter()
    
public  booleangetFailOnError()
    
protected  StringgetKeyfileParameter()
    
protected  StringgetListingParameter()
    
protected  StringgetOutputFileParameter()
    
protected  StringgetResourceFileParameter()
    
public  StringgetTargetType()
    
protected  StringgetTargetTypeParameter()
    
protected  StringgetVerboseParameter()
    
protected static  booleanisFileManagedBinary(File file)
     test for a file being managed or not
Parameters:
  file - the file to test.
protected  booleannotEmpty(String s)
    
public  voidsetDebug(boolean f)
     set the debug flag on or off.
public  voidsetExtraOptions(String extraOptions)
     Any extra options which are not explicitly supported by this task.
public  voidsetFailOnError(boolean b)
     If true, fails if ilasm tool fails.
public  voidsetKeyfile(File keyfile)
     the name of a file containing a private key.
public  voidsetListing(boolean b)
     If true, produce a listing (off by default).
public  voidsetMono(boolean b)
     Explicitly override the Mono auto-detection.
public  voidsetOutputFile(File params)
    
public  voidsetOwner(String s)
     Sets the Owner attribute.
public  voidsetResourceFile(File fileName)
     name of resource file to include.
Parameters:
  fileName - path to the file.
public  voidsetTargetType(String targetType)
     Sets the type of target, either "exe" or "library".
public  voidsetTargetType(TargetTypes targetType)
    
public  voidsetVerbose(boolean b)
     If true, enable verbose ILASM output.

Field Detail
debug
protected boolean debug(Code)
debug flag. Controls generation of debug information.



exe_name
final protected static String exe_name(Code)
Name of the executable. The .exe suffix is deliberately not included in anticipation of the unix version



exe_title
final protected static String exe_title(Code)
title of task for external presentation



extraOptions
protected String extraOptions(Code)
any extra command options?



failOnError
protected boolean failOnError(Code)
flag to control action on execution trouble



file_ext
final protected static String file_ext(Code)
what is the file extension we search on?



file_pattern
final protected static String file_pattern(Code)
and now derive the search pattern from the extension



listing
protected boolean listing(Code)
listing flag



referenceFilesets
protected Vector referenceFilesets(Code)
filesets of references



resourceFile
protected File resourceFile(Code)
resource file (.res format) to include in the app.



targetType
protected String targetType(Code)
type of target. Should be one of exe|library|module|winexe|(null) default is exe; the actual value (if not null) is fed to the command line.
See /target



verbose
protected boolean verbose(Code)
verbose flag




Constructor Detail
Ilasm
public Ilasm()(Code)
constructor inits everything and set up the search pattern




Method Detail
Clear
public void Clear()(Code)
reset all contents.



addReference
public void addReference(FileSet reference)(Code)
add a new reference fileset to the compilation
Parameters:
  reference - the fileset to use.



execute
public void execute() throws BuildException(Code)
This is the execution entry point. Build a list of files and call ilasm on each of them.
throws:
  BuildException - if the assembly failed and FailOnError is true



getDebug
public boolean getDebug()(Code)
query the debug flag true if debug is turned on



getDebugParameter
protected String getDebugParameter()(Code)
get the argument or null for no argument needed The debugParameter value



getExtraOptions
public String getExtraOptions()(Code)
Gets the ExtraOptions attribute The ExtraOptions value



getExtraOptionsParameter
protected String getExtraOptionsParameter()(Code)
get any extra options or null for no argument needed The ExtraOptions Parameter to CSC



getFailOnError
public boolean getFailOnError()(Code)
query fail on error flag The failFailOnError value



getKeyfileParameter
protected String getKeyfileParameter()(Code)
get the argument or null for no argument needed The keyfileParameter value



getListingParameter
protected String getListingParameter()(Code)
turn the listing flag into a parameter for ILASM the appropriate string from the state of the listing flag



getOutputFileParameter
protected String getOutputFileParameter()(Code)
get the output file the argument string or null for no argument



getResourceFileParameter
protected String getResourceFileParameter()(Code)
Gets the resourceFileParameter attribute of the Ilasm task The resourceFileParameter value



getTargetType
public String getTargetType()(Code)
accessor method for target type the current target option



getTargetTypeParameter
protected String getTargetTypeParameter()(Code)
g get the target type or null for no argument needed The TargetTypeParameter value



getVerboseParameter
protected String getVerboseParameter()(Code)
turn the verbose flag into a parameter for ILASM null or the appropriate command line string



isFileManagedBinary
protected static boolean isFileManagedBinary(File file)(Code)
test for a file being managed or not
Parameters:
  file - the file to test. true if we think this is a managed executable, and thus OKfor linking



notEmpty
protected boolean notEmpty(String s)(Code)
test for a string containing something useful
Parameters:
  s - any string true if the argument is not null or empty



setDebug
public void setDebug(boolean f)(Code)
set the debug flag on or off.
Parameters:
  f - on/off flag



setExtraOptions
public void setExtraOptions(String extraOptions)(Code)
Any extra options which are not explicitly supported by this task.
Parameters:
  extraOptions - The new ExtraOptions value



setFailOnError
public void setFailOnError(boolean b)(Code)
If true, fails if ilasm tool fails.
Parameters:
  b - The new failOnError value



setKeyfile
public void setKeyfile(File keyfile)(Code)
the name of a file containing a private key.
Parameters:
  keyfile - The new keyfile value



setListing
public void setListing(boolean b)(Code)
If true, produce a listing (off by default).
Parameters:
  b - flag set to true for listing on



setMono
public void setMono(boolean b)(Code)
Explicitly override the Mono auto-detection.

Defaults to false on Windows and true on any other platform.


Parameters:
  b - a boolean value.
since:
   Ant 1.7



setOutputFile
public void setOutputFile(File params)(Code)
Set the output file; identical to setDestFile
See Also:   DotnetBaseMatchingTask.setDestFile
Parameters:
  params - The new outputFile value



setOwner
public void setOwner(String s)(Code)
Sets the Owner attribute.
Parameters:
  s - The new Owner value



setResourceFile
public void setResourceFile(File fileName)(Code)
name of resource file to include.
Parameters:
  fileName - path to the file. Can be relative, absolute, whatever.



setTargetType
public void setTargetType(String targetType) throws BuildException(Code)
Sets the type of target, either "exe" or "library".
Parameters:
  targetType - one of exe|library|
exception:
  BuildException - if target is not one ofexe|library



setTargetType
public void setTargetType(TargetTypes targetType)(Code)
set the target type to one of exe|library
Parameters:
  targetType - the enumerated value.



setVerbose
public void setVerbose(boolean b)(Code)
If true, enable verbose ILASM output.
Parameters:
  b - flag set to true for verbose on



Fields inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
protected Vector filesets(Code)(Java Doc)
final protected static boolean isWindows(Code)(Java Doc)
protected File outputFile(Code)(Java Doc)
protected File srcDir(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
protected void addFilesAndExecute(NetCommand command, boolean ignoreTimestamps)(Code)(Java Doc)
protected void addFilesToCommand(Hashtable filesToBuild, NetCommand command)(Code)(Java Doc)
public void addSrc(FileSet src)(Code)(Java Doc)
protected int buildFileList(NetCommand command, Hashtable filesToBuild, long outputTimestamp)(Code)(Java Doc)
public File getDestFile()(Code)(Java Doc)
protected long getOutputFileTimestamp()(Code)(Java Doc)
public File getSrcDir()(Code)(Java Doc)
public void setDestFile(File file)(Code)(Java Doc)
public void setSrcDir(File srcDirName)(Code)(Java Doc)

w_ww__.j__av_a_2s___.___c___o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.