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


org.apache.tools.ant.taskdefs.MatchingTask
   org.apache.tools.ant.taskdefs.optional.NetRexxC

NetRexxC
public class NetRexxC extends MatchingTask (Code)
Compiles NetRexx source files. This task can take the following arguments:
  • binary
  • classpath
  • comments
  • compile
  • console
  • crossref
  • decimal
  • destdir
  • diag
  • explicit
  • format
  • keep
  • logo
  • replace
  • savelog
  • srcdir
  • sourcedir
  • strictargs
  • strictassign
  • strictcase
  • strictimport
  • symbols
  • time
  • trace
  • utf8
  • verbose
  • suppressMethodArgumentNotUsed
  • suppressPrivatePropertyNotUsed
  • suppressVariableNotUsed
  • suppressExceptionNotSignalled
  • suppressDeprecation
Of these arguments, the srcdir argument is required.

When this task executes, it will recursively scan the srcdir looking for NetRexx source files to compile. This task makes its compile decision based on timestamp.

Before files are compiled they and any other file in the srcdir will be copied to the destdir allowing support files to be located properly in the classpath. The reason for copying the source files before the compile is that NetRexxC has only two destinations for classfiles:

  1. The current directory, and,
  2. The directory the source is in (see sourcedir option)

Inner Class :public static class TraceAttr extends EnumeratedAttribute
Inner Class :public static class VerboseAttr extends EnumeratedAttribute

Field Summary
final static  StringMSG_DEPRECATION
    
final static  StringMSG_EXCEPTION_NOT_SIGNALLED
    
final static  StringMSG_METHOD_ARGUMENT_NOT_USED
    
final static  StringMSG_PRIVATE_PROPERTY_NOT_USED
    
final static  StringMSG_VARIABLE_NOT_USED
    


Method Summary
public  voidexecute()
     Executes the task - performs the actual compiler call.
public  voidinit()
     init-Method sets defaults from Properties.
public  voidsetBinary(boolean binary)
     Set whether literals are treated as binary, rather than NetRexx types.
public  voidsetClasspath(String classpath)
     Set the classpath used for NetRexx compilation.
public  voidsetComments(boolean comments)
     Set whether comments are passed through to the generated java source. Valid true values are "on" or "true".
public  voidsetCompact(boolean compact)
     Set whether error messages come out in compact or verbose format.
public  voidsetCompile(boolean compile)
     Set whether the NetRexx compiler should compile the generated java code Valid true values are "on" or "true".
public  voidsetConsole(boolean console)
     Set whether or not messages should be displayed on the 'console' Valid true values are "on" or "true".
public  voidsetCrossref(boolean crossref)
     Whether variable cross references are generated.
public  voidsetDecimal(boolean decimal)
     Set whether decimal arithmetic should be used for the netrexx code. Binary arithmetic is used when this flag is turned off.
public  voidsetDestDir(File destDirName)
     Set the destination directory into which the NetRexx source files should be copied and then compiled.
public  voidsetDiag(boolean diag)
    
public  voidsetExplicit(boolean explicit)
     Sets whether variables must be declared explicitly before use.
public  voidsetFormat(boolean format)
     Whether the generated java code is formatted nicely or left to match NetRexx line numbers for call stack debugging.
public  voidsetJava(boolean java)
     Whether the generated java code is produced Valid true values are "on" or "true".
public  voidsetKeep(boolean keep)
     Sets whether the generated java source file should be kept after compilation.
public  voidsetLogo(boolean logo)
     Whether the compiler text logo is displayed when compiling.
public  voidsetReplace(boolean replace)
     Whether the generated .java file should be replaced when compiling Valid true values are "on" or "true".
public  voidsetSavelog(boolean savelog)
     Sets whether the compiler messages will be written to NetRexxC.log as well as to the console Valid true values are "on" or "true".
public  voidsetSourcedir(boolean sourcedir)
     Tells the NetRexx compiler to store the class files in the same directory as the source files.
public  voidsetSrcDir(File srcDirName)
     Set the source dir to find the source Java files.
public  voidsetStrictargs(boolean strictargs)
     Tells the NetRexx compiler that method calls always need parentheses, even if no arguments are needed, e.g.
public  voidsetStrictassign(boolean strictassign)
     Tells the NetRexx compile that assignments must match exactly on type.
public  voidsetStrictcase(boolean strictcase)
     Specifies whether the NetRexx compiler should be case sensitive or not.
public  voidsetStrictimport(boolean strictimport)
     Sets whether classes need to be imported explicitly using an import statement.
public  voidsetStrictprops(boolean strictprops)
     Sets whether local properties need to be qualified explicitly using this Valid true values are "on" or "true".
public  voidsetStrictsignal(boolean strictsignal)
     Whether the compiler should force catching of exceptions by explicitly named types.
public  voidsetSuppressDeprecation(boolean suppressDeprecation)
     Tells whether we should filter out any deprecation-messages of the compiler out.
public  voidsetSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled)
     Whether the task should suppress the "FooException is in SIGNALS list but is not signalled within the method", which is sometimes rather useless.
public  voidsetSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed)
     Whether the task should suppress the "Method argument is not used" in strictargs-Mode, which can not be suppressed by the compiler itself.
public  voidsetSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed)
     Whether the task should suppress the "Private property is defined but not used" in strictargs-Mode, which can be quite annoying while developing.
public  voidsetSuppressVariableNotUsed(boolean suppressVariableNotUsed)
     Whether the task should suppress the "Variable is set but not used" in strictargs-Mode.
public  voidsetSymbols(boolean symbols)
     Sets whether debug symbols should be generated into the class file Valid true values are "on" or "true".
public  voidsetTime(boolean time)
     Asks the NetRexx compiler to print compilation times to the console Valid true values are "on" or "true".
public  voidsetTrace(TraceAttr trace)
     Turns on or off tracing and directs the resultant trace output Valid values are: "trace", "trace1", "trace2" and "notrace".
public  voidsetTrace(String trace)
     Turns on or off tracing and directs the resultant trace output Valid values are: "trace", "trace1", "trace2" and "notrace".
public  voidsetUtf8(boolean utf8)
     Tells the NetRexx compiler that the source is in UTF8 Valid true values are "on" or "true".
public  voidsetVerbose(VerboseAttr verbose)
    
public  voidsetVerbose(String verbose)
    

Field Detail
MSG_DEPRECATION
final static String MSG_DEPRECATION(Code)



MSG_EXCEPTION_NOT_SIGNALLED
final static String MSG_EXCEPTION_NOT_SIGNALLED(Code)



MSG_METHOD_ARGUMENT_NOT_USED
final static String MSG_METHOD_ARGUMENT_NOT_USED(Code)



MSG_PRIVATE_PROPERTY_NOT_USED
final static String MSG_PRIVATE_PROPERTY_NOT_USED(Code)



MSG_VARIABLE_NOT_USED
final static String MSG_VARIABLE_NOT_USED(Code)





Method Detail
execute
public void execute() throws BuildException(Code)
Executes the task - performs the actual compiler call.
throws:
  BuildException - on error.



init
public void init()(Code)
init-Method sets defaults from Properties. That way, when ant is called with arguments like -Dant.netrexxc.verbose=verbose5 one can easily take control of all netrexxc-tasks.



setBinary
public void setBinary(boolean binary)(Code)
Set whether literals are treated as binary, rather than NetRexx types.
Parameters:
  binary - a boolean value.



setClasspath
public void setClasspath(String classpath)(Code)
Set the classpath used for NetRexx compilation.
Parameters:
  classpath - the classpath to use.



setComments
public void setComments(boolean comments)(Code)
Set whether comments are passed through to the generated java source. Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false
Parameters:
  comments - a boolean value.



setCompact
public void setCompact(boolean compact)(Code)
Set whether error messages come out in compact or verbose format. Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false
Parameters:
  compact - a boolean value.



setCompile
public void setCompile(boolean compile)(Code)
Set whether the NetRexx compiler should compile the generated java code Valid true values are "on" or "true". Anything else sets the flag to false. The default value is true. Setting this flag to false, will automatically set the keep flag to true.
Parameters:
  compile - a boolean value.



setConsole
public void setConsole(boolean console)(Code)
Set whether or not messages should be displayed on the 'console' Valid true values are "on" or "true". Anything else sets the flag to false. The default value is true.
Parameters:
  console - a boolean value.



setCrossref
public void setCrossref(boolean crossref)(Code)
Whether variable cross references are generated.
Parameters:
  crossref - a boolean value.



setDecimal
public void setDecimal(boolean decimal)(Code)
Set whether decimal arithmetic should be used for the netrexx code. Binary arithmetic is used when this flag is turned off. Valid true values are "on" or "true". Anything else sets the flag to false. The default value is true.
Parameters:
  decimal - a boolean value.



setDestDir
public void setDestDir(File destDirName)(Code)
Set the destination directory into which the NetRexx source files should be copied and then compiled.
Parameters:
  destDirName - the destination directory.



setDiag
public void setDiag(boolean diag)(Code)
Whether diagnostic information about the compile is generated
Parameters:
  diag - a boolean value.



setExplicit
public void setExplicit(boolean explicit)(Code)
Sets whether variables must be declared explicitly before use. Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  explicit - a boolean value.



setFormat
public void setFormat(boolean format)(Code)
Whether the generated java code is formatted nicely or left to match NetRexx line numbers for call stack debugging.
Parameters:
  format - a boolean value.



setJava
public void setJava(boolean java)(Code)
Whether the generated java code is produced Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  java - a boolean value.



setKeep
public void setKeep(boolean keep)(Code)
Sets whether the generated java source file should be kept after compilation. The generated files will have an extension of .java.keep, not .java Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  keep - a boolean value.



setLogo
public void setLogo(boolean logo)(Code)
Whether the compiler text logo is displayed when compiling.
Parameters:
  logo - a boolean value.



setReplace
public void setReplace(boolean replace)(Code)
Whether the generated .java file should be replaced when compiling Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  replace - a boolean value.



setSavelog
public void setSavelog(boolean savelog)(Code)
Sets whether the compiler messages will be written to NetRexxC.log as well as to the console Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  savelog - a boolean value.



setSourcedir
public void setSourcedir(boolean sourcedir)(Code)
Tells the NetRexx compiler to store the class files in the same directory as the source files. The alternative is the working directory Valid true values are "on" or "true". Anything else sets the flag to false. The default value is true.
Parameters:
  sourcedir - a boolean value.



setSrcDir
public void setSrcDir(File srcDirName)(Code)
Set the source dir to find the source Java files.
Parameters:
  srcDirName - the source directory.



setStrictargs
public void setStrictargs(boolean strictargs)(Code)
Tells the NetRexx compiler that method calls always need parentheses, even if no arguments are needed, e.g. aStringVar.getBytes vs. aStringVar.getBytes() Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  strictargs - a boolean value.



setStrictassign
public void setStrictassign(boolean strictassign)(Code)
Tells the NetRexx compile that assignments must match exactly on type.
Parameters:
  strictassign - a boolean value.



setStrictcase
public void setStrictcase(boolean strictcase)(Code)
Specifies whether the NetRexx compiler should be case sensitive or not.
Parameters:
  strictcase - a boolean value.



setStrictimport
public void setStrictimport(boolean strictimport)(Code)
Sets whether classes need to be imported explicitly using an import statement. By default the NetRexx compiler will import certain packages automatically Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  strictimport - a boolean value.



setStrictprops
public void setStrictprops(boolean strictprops)(Code)
Sets whether local properties need to be qualified explicitly using this Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  strictprops - a boolean value.



setStrictsignal
public void setStrictsignal(boolean strictsignal)(Code)
Whether the compiler should force catching of exceptions by explicitly named types.
Parameters:
  strictsignal - a boolean value.



setSuppressDeprecation
public void setSuppressDeprecation(boolean suppressDeprecation)(Code)
Tells whether we should filter out any deprecation-messages of the compiler out.
Parameters:
  suppressDeprecation - a boolean value.



setSuppressExceptionNotSignalled
public void setSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled)(Code)
Whether the task should suppress the "FooException is in SIGNALS list but is not signalled within the method", which is sometimes rather useless. The warning is logged as verbose message, though.
Parameters:
  suppressExceptionNotSignalled - a boolean value.



setSuppressMethodArgumentNotUsed
public void setSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed)(Code)
Whether the task should suppress the "Method argument is not used" in strictargs-Mode, which can not be suppressed by the compiler itself. The warning is logged as verbose message, though.
Parameters:
  suppressMethodArgumentNotUsed - a boolean value.



setSuppressPrivatePropertyNotUsed
public void setSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed)(Code)
Whether the task should suppress the "Private property is defined but not used" in strictargs-Mode, which can be quite annoying while developing. The warning is logged as verbose message, though.
Parameters:
  suppressPrivatePropertyNotUsed - a boolean value.



setSuppressVariableNotUsed
public void setSuppressVariableNotUsed(boolean suppressVariableNotUsed)(Code)
Whether the task should suppress the "Variable is set but not used" in strictargs-Mode. Be careful with this one! The warning is logged as verbose message, though.
Parameters:
  suppressVariableNotUsed - a boolean value.



setSymbols
public void setSymbols(boolean symbols)(Code)
Sets whether debug symbols should be generated into the class file Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  symbols - a boolean value.



setTime
public void setTime(boolean time)(Code)
Asks the NetRexx compiler to print compilation times to the console Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  time - a boolean value.



setTrace
public void setTrace(TraceAttr trace)(Code)
Turns on or off tracing and directs the resultant trace output Valid values are: "trace", "trace1", "trace2" and "notrace". "trace" and "trace2".
Parameters:
  trace - the value to set.



setTrace
public void setTrace(String trace)(Code)
Turns on or off tracing and directs the resultant trace output Valid values are: "trace", "trace1", "trace2" and "notrace". "trace" and "trace2".
Parameters:
  trace - the value to set.



setUtf8
public void setUtf8(boolean utf8)(Code)
Tells the NetRexx compiler that the source is in UTF8 Valid true values are "on" or "true". Anything else sets the flag to false. The default value is false.
Parameters:
  utf8 - a boolean value.



setVerbose
public void setVerbose(VerboseAttr verbose)(Code)
Whether lots of warnings and error messages should be generated
Parameters:
  verbose - the value to set - verbose<level> or noverbose.



setVerbose
public void setVerbose(String verbose)(Code)
Whether lots of warnings and error messages should be generated
Parameters:
  verbose - the value to set - verbose<level> or noverbose.



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.