Java Doc for Rmic.java in  » Build » ANT » org » apache » tools » ant » taskdefs » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.MatchingTask
   org.apache.tools.ant.taskdefs.Rmic

Rmic
public class Rmic extends MatchingTask (Code)

Inner Class :public class ImplementationSpecificArgument extends org.apache.tools.ant.util.facade.ImplementationSpecificArgument

Field Summary
final public static  StringERROR_BASE_NOT_SET
    
final public static  StringERROR_LOADING_CAUSED_EXCEPTION
    
final public static  StringERROR_NOT_A_DIR
    
final public static  StringERROR_NOT_DEFINED
    
final public static  StringERROR_NOT_FOUND
    
final public static  StringERROR_NO_BASE_EXISTS
    
final public static  StringERROR_RMIC_FAILED
    
final public static  StringERROR_UNABLE_TO_VERIFY_CLASS
    

Constructor Summary
public  Rmic()
     Constructor for Rmic.

Method Summary
public  PathcreateClasspath()
     Creates a nested classpath element.
public  ImplementationSpecificArgumentcreateCompilerArg()
     Adds an implementation specific command line argument.
public  PathcreateExtdirs()
     Maybe creates a nested extdirs element.
public  voidexecute()
    
public  FilegetBase()
     Gets the base directory to output generated class.
public  StringgetClassname()
     Gets the class name to compile.
public  PathgetClasspath()
     Gets the classpath.
public  VectorgetCompileList()
    
public  StringgetCompiler()
    
public  String[]getCurrentCompilerArgs()
     Get the additional implementation specific command line arguments.
public  booleangetDebug()
     Gets the debug flag.
public  PathgetExtdirs()
     Gets the extension directories that will be used during the compilation.
public  VectorgetFileList()
     Gets file list to compile.
public  booleangetFiltering()
    
public  booleangetIdl()
     Gets IDL flags.
public  StringgetIdlopts()
     Gets additional arguments for idl compile.
public  booleangetIiop()
     Gets iiop flags.
public  StringgetIiopopts()
     Gets additional arguments for iiop.
public  booleangetIncludeantruntime()
     Gets whether or not the ant classpath is to be included in the task's classpath.
public  booleangetIncludejavaruntime()
     Gets whether or not the java runtime should be included in this task's classpath.
public  ClassLoadergetLoader()
     Classloader for the user-specified classpath.
public  ClassgetRemoteInterface(Class testClass)
     Returns the topmost interface that extends Remote for a given class - if one exists.
public  FilegetSourceBase()
     Gets the source dirs to find the source java files.
public  StringgetStubVersion()
     Gets the JDK version for the generated stub code.
public  booleangetVerify()
     Get verify flag.
public  booleanisValidRmiRemote(String classname)
    
protected  voidscanDir(File baseDir, String[] files, FileNameMapper mapper)
     Scans the directory looking for class files to be compiled.
public  voidsetBase(File base)
    
public  voidsetClassname(String classname)
    
public  voidsetClasspath(Path classpath)
     Set the classpath to be used for this compilation.
public  voidsetClasspathRef(Reference pathRef)
     Adds to the classpath a reference to a <path> defined elsewhere.
public  voidsetCompiler(String compiler)
    
public  voidsetDebug(boolean debug)
    
public  voidsetExtdirs(Path extDirs)
     Sets the extension directories that will be used during the compilation; optional.
public  voidsetFiltering(boolean filter)
    
public  voidsetIdl(boolean idl)
     Indicates that IDL output should be generated.
public  voidsetIdlopts(String idlOpts)
    
public  voidsetIiop(boolean iiop)
     Indicates that IIOP compatible stubs should be generated; optional, defaults to false if not set.
public  voidsetIiopopts(String iiopOpts)
    
public  voidsetIncludeantruntime(boolean include)
     Sets whether or not to include ant's own classpath in this task's classpath.
public  voidsetIncludejavaruntime(boolean include)
     task's classpath.
public  voidsetSourceBase(File sourceBase)
     optional directory to save generated source files to.
public  voidsetStubVersion(String stubVersion)
     Specify the JDK version for the generated stub code.
public  voidsetVerify(boolean verify)
     Flag to enable verification so that the classes found by the directory match are checked to see if they implement java.rmi.Remote.

Field Detail
ERROR_BASE_NOT_SET
final public static String ERROR_BASE_NOT_SET(Code)
base attribute not set message



ERROR_LOADING_CAUSED_EXCEPTION
final public static String ERROR_LOADING_CAUSED_EXCEPTION(Code)
loaded error message



ERROR_NOT_A_DIR
final public static String ERROR_NOT_A_DIR(Code)
base not a directory message



ERROR_NOT_DEFINED
final public static String ERROR_NOT_DEFINED(Code)
not defined message



ERROR_NOT_FOUND
final public static String ERROR_NOT_FOUND(Code)
could not be found message



ERROR_NO_BASE_EXISTS
final public static String ERROR_NO_BASE_EXISTS(Code)
base not exists message



ERROR_RMIC_FAILED
final public static String ERROR_RMIC_FAILED(Code)
rmic failed message



ERROR_UNABLE_TO_VERIFY_CLASS
final public static String ERROR_UNABLE_TO_VERIFY_CLASS(Code)
unable to verify message




Constructor Detail
Rmic
public Rmic()(Code)
Constructor for Rmic.




Method Detail
createClasspath
public Path createClasspath()(Code)
Creates a nested classpath element. classpath



createCompilerArg
public ImplementationSpecificArgument createCompilerArg()(Code)
Adds an implementation specific command line argument. an object to be configured with a command line argument
since:
   Ant 1.5



createExtdirs
public Path createExtdirs()(Code)
Maybe creates a nested extdirs element. path object to be configured with the extension directories



execute
public void execute() throws BuildException(Code)
execute by creating an instance of an implementation class and getting to do the work
throws:
  org.apache.tools.ant.BuildException - if there's a problem with baseDir or RMIC



getBase
public File getBase()(Code)
Gets the base directory to output generated class. the location of the compiled files



getClassname
public String getClassname()(Code)
Gets the class name to compile. the name of the class to compile



getClasspath
public Path getClasspath()(Code)
Gets the classpath. the classpath



getCompileList
public Vector getCompileList()(Code)
the compile list.



getCompiler
public String getCompiler()(Code)
get the name of the current compiler the name of the compiler
since:
   Ant 1.5



getCurrentCompilerArgs
public String[] getCurrentCompilerArgs()(Code)
Get the additional implementation specific command line arguments. array of command line arguments, guaranteed to be non-null.
since:
   Ant 1.5



getDebug
public boolean getDebug()(Code)
Gets the debug flag. debug



getExtdirs
public Path getExtdirs()(Code)
Gets the extension directories that will be used during the compilation. the extension directories to be used



getFileList
public Vector getFileList()(Code)
Gets file list to compile. the list of files to compile.



getFiltering
public boolean getFiltering()(Code)
Gets whether token filtering is set filtering



getIdl
public boolean getIdl()(Code)
Gets IDL flags. the idl flag



getIdlopts
public String getIdlopts()(Code)
Gets additional arguments for idl compile. the idl options



getIiop
public boolean getIiop()(Code)
Gets iiop flags. iiop



getIiopopts
public String getIiopopts()(Code)
Gets additional arguments for iiop. iiopOpts



getIncludeantruntime
public boolean getIncludeantruntime()(Code)
Gets whether or not the ant classpath is to be included in the task's classpath. true if ant's classpath is to be included



getIncludejavaruntime
public boolean getIncludejavaruntime()(Code)
Gets whether or not the java runtime should be included in this task's classpath. true if default run-time libraries are included



getLoader
public ClassLoader getLoader()(Code)
Classloader for the user-specified classpath. the classloader



getRemoteInterface
public Class getRemoteInterface(Class testClass)(Code)
Returns the topmost interface that extends Remote for a given class - if one exists.
Parameters:
  testClass - the class to be tested the topmost interface that extends Remote, or null if thereis none.



getSourceBase
public File getSourceBase()(Code)
Gets the source dirs to find the source java files. sourceBase the directory containing the source files.



getStubVersion
public String getStubVersion()(Code)
Gets the JDK version for the generated stub code. stubVersion



getVerify
public boolean getVerify()(Code)
Get verify flag. verify



isValidRmiRemote
public boolean isValidRmiRemote(String classname)(Code)
Load named class and test whether it can be rmic'ed
Parameters:
  classname - the name of the class to be tested true if the class can be rmic'ed



scanDir
protected void scanDir(File baseDir, String[] files, FileNameMapper mapper)(Code)
Scans the directory looking for class files to be compiled. The result is returned in the class variable compileList.
Parameters:
  baseDir - the base direction
Parameters:
  files - the list of files to scan
Parameters:
  mapper - the mapper of files to target files



setBase
public void setBase(File base)(Code)
Sets the location to store the compiled files; required
Parameters:
  base - the location to store the compiled files



setClassname
public void setClassname(String classname)(Code)
Sets the class to run rmic against; optional
Parameters:
  classname - the name of the class for rmic to create code for



setClasspath
public void setClasspath(Path classpath)(Code)
Set the classpath to be used for this compilation.
Parameters:
  classpath - the classpath used for this compilation



setClasspathRef
public void setClasspathRef(Reference pathRef)(Code)
Adds to the classpath a reference to a <path> defined elsewhere.
Parameters:
  pathRef - the reference to add to the classpath



setCompiler
public void setCompiler(String compiler)(Code)
Sets the compiler implementation to use; optional, defaults to the value of the build.rmic property, or failing that, default compiler for the current VM
Parameters:
  compiler - the compiler implemention to use
since:
   Ant 1.5



setDebug
public void setDebug(boolean debug)(Code)
Generate debug info (passes -g to rmic); optional, defaults to false
Parameters:
  debug - turn on debug info



setExtdirs
public void setExtdirs(Path extDirs)(Code)
Sets the extension directories that will be used during the compilation; optional.
Parameters:
  extDirs - the extension directories to be used



setFiltering
public void setFiltering(boolean filter)(Code)
Sets token filtering [optional], default=false
Parameters:
  filter - turn on token filtering



setIdl
public void setIdl(boolean idl)(Code)
Indicates that IDL output should be generated. This defaults to false if not set.
Parameters:
  idl - generate IDL output



setIdlopts
public void setIdlopts(String idlOpts)(Code)
pass additional arguments for IDL compile
Parameters:
  idlOpts - additional IDL arguments



setIiop
public void setIiop(boolean iiop)(Code)
Indicates that IIOP compatible stubs should be generated; optional, defaults to false if not set.
Parameters:
  iiop - generate IIOP compatible stubs



setIiopopts
public void setIiopopts(String iiopOpts)(Code)
Set additional arguments for iiop
Parameters:
  iiopOpts - additional arguments for iiop



setIncludeantruntime
public void setIncludeantruntime(boolean include)(Code)
Sets whether or not to include ant's own classpath in this task's classpath. Optional; default is true.
Parameters:
  include - if true include ant's classpath



setIncludejavaruntime
public void setIncludejavaruntime(boolean include)(Code)
task's classpath. Enables or disables including the default run-time libraries from the executing VM; optional, defaults to false
Parameters:
  include - if true include default run-time libraries



setSourceBase
public void setSourceBase(File sourceBase)(Code)
optional directory to save generated source files to.
Parameters:
  sourceBase - the directory to save source files to.




Parameters:
  stubVersion - the JDK version
setStubVersion
public void setStubVersion(String stubVersion)(Code)
Specify the JDK version for the generated stub code. Specify "1.1" to pass the "-v1.1" option to rmic.



setVerify
public void setVerify(boolean verify)(Code)
Flag to enable verification so that the classes found by the directory match are checked to see if they implement java.rmi.Remote. optional; This defaults to false if not set.
Parameters:
  verify - turn on verification for classes



Fields inherited from org.apache.tools.ant.taskdefs.MatchingTask
protected FileSet fileset(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.MatchingTask
public void XsetIgnore(String ignoreString)(Code)(Java Doc)
public void XsetItems(String itemString)(Code)(Java Doc)
public void add(FileSelector selector)(Code)(Java Doc)
public void addAnd(AndSelector selector)(Code)(Java Doc)
public void addContains(ContainsSelector selector)(Code)(Java Doc)
public void addContainsRegexp(ContainsRegexpSelector selector)(Code)(Java Doc)
public void addCustom(ExtendSelector selector)(Code)(Java Doc)
public void addDate(DateSelector selector)(Code)(Java Doc)
public void addDepend(DependSelector selector)(Code)(Java Doc)
public void addDepth(DepthSelector selector)(Code)(Java Doc)
public void addDifferent(DifferentSelector selector)(Code)(Java Doc)
public void addFilename(FilenameSelector selector)(Code)(Java Doc)
public void addMajority(MajoritySelector selector)(Code)(Java Doc)
public void addModified(ModifiedSelector selector)(Code)(Java Doc)
public void addNone(NoneSelector selector)(Code)(Java Doc)
public void addNot(NotSelector selector)(Code)(Java Doc)
public void addOr(OrSelector selector)(Code)(Java Doc)
public void addPresent(PresentSelector selector)(Code)(Java Doc)
public void addSelector(SelectSelector selector)(Code)(Java Doc)
public void addSize(SizeSelector selector)(Code)(Java Doc)
public void addType(TypeSelector selector)(Code)(Java Doc)
public void appendSelector(FileSelector selector)(Code)(Java Doc)
public PatternSet.NameEntry createExclude()(Code)(Java Doc)
public PatternSet.NameEntry createExcludesFile()(Code)(Java Doc)
public PatternSet.NameEntry createInclude()(Code)(Java Doc)
public PatternSet.NameEntry createIncludesFile()(Code)(Java Doc)
public PatternSet createPatternSet()(Code)(Java Doc)
protected DirectoryScanner getDirectoryScanner(File baseDir)(Code)(Java Doc)
final protected FileSet getImplicitFileSet()(Code)(Java Doc)
public FileSelector[] getSelectors(Project p)(Code)(Java Doc)
public boolean hasSelectors()(Code)(Java Doc)
public int selectorCount()(Code)(Java Doc)
public Enumeration selectorElements()(Code)(Java Doc)
public void setCaseSensitive(boolean isCaseSensitive)(Code)(Java Doc)
public void setDefaultexcludes(boolean useDefaultExcludes)(Code)(Java Doc)
public void setExcludes(String excludes)(Code)(Java Doc)
public void setExcludesfile(File excludesfile)(Code)(Java Doc)
public void setFollowSymlinks(boolean followSymlinks)(Code)(Java Doc)
public void setIncludes(String includes)(Code)(Java Doc)
public void setIncludesfile(File includesfile)(Code)(Java Doc)
public void setProject(Project project)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.