Java Doc for Apt.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.Javac
      org.apache.tools.ant.taskdefs.Apt

Apt
public class Apt extends Javac (Code)
Apt Task for running the Annotation processing tool for JDK 1.5. It derives from the existing Javac task, and forces the compiler based on whether we're executing internally, or externally.
since:
   Ant 1.7

Inner Class :final public static class Option

Field Summary
final public static  StringERROR_IGNORING_COMPILER_OPTION
     An warning message when ignoring compiler attribute.
final public static  StringERROR_WRONG_JAVA_VERSION
     A warning message if used with java < 1.5.
final public static  StringEXECUTABLE_NAME
     The name of the apt tool.
final public static  StringWARNING_IGNORING_FORK
    

Constructor Summary
public  Apt()
     Construtor for Apt task.

Method Summary
public  PathcreateFactoryPath()
     Add a path to the factoryPath attribute.
public  OptioncreateOption()
     Create a nested option.
public  voidexecute()
     Do the compilation.
public  StringgetAptExecutable()
     Get the name of the apt executable.
public  StringgetCompiler()
     Get the compiler class name.
public  StringgetFactory()
     Get the factory option for the apt compiler.
public  PathgetFactoryPath()
     Get the factory path attribute.
public  VectorgetOptions()
     Get the options to the compiler.
public  FilegetPreprocessDir()
     Get the preprocessdir attribute.
public  booleanisCompile()
     Get the compile option for the apt compiler.
public  voidsetCompile(boolean compile)
     Set the compile option for the apt compiler.
public  voidsetCompiler(String compiler)
     Set the compiler.
public  voidsetFactory(String factory)
     Set the factory option for the apt compiler.
public  voidsetFactoryPathRef(Reference ref)
     Add a reference to a path to the factoryPath attribute.
public  voidsetFork(boolean fork)
     Set the fork attribute. Non-forking APT is highly classpath dependent and appears to be too brittle to work.
public  voidsetPreprocessDir(File preprocessDir)
     Set the preprocessdir attribute.

Field Detail
ERROR_IGNORING_COMPILER_OPTION
final public static String ERROR_IGNORING_COMPILER_OPTION(Code)
An warning message when ignoring compiler attribute.



ERROR_WRONG_JAVA_VERSION
final public static String ERROR_WRONG_JAVA_VERSION(Code)
A warning message if used with java < 1.5.



EXECUTABLE_NAME
final public static String EXECUTABLE_NAME(Code)
The name of the apt tool.



WARNING_IGNORING_FORK
final public static String WARNING_IGNORING_FORK(Code)
exposed for debug messages




Constructor Detail
Apt
public Apt()(Code)
Construtor for Apt task. This sets the apt compiler adapter as the compiler in the super class.




Method Detail
createFactoryPath
public Path createFactoryPath()(Code)
Add a path to the factoryPath attribute. a path to be configured.



createOption
public Option createOption()(Code)
Create a nested option. an option to be configured.



execute
public void execute() throws BuildException(Code)
Do the compilation.
throws:
  BuildException - on error.



getAptExecutable
public String getAptExecutable()(Code)
Get the name of the apt executable. the name of the executable.



getCompiler
public String getCompiler()(Code)
Get the compiler class name. the compiler class name.



getFactory
public String getFactory()(Code)
Get the factory option for the apt compiler. If this is non-null the "-factory" argument will be used. the value of the factory option.



getFactoryPath
public Path getFactoryPath()(Code)
Get the factory path attribute. If this is not null, the "-factorypath" argument will be used. The default value is null. the factory path attribute.



getOptions
public Vector getOptions()(Code)
Get the options to the compiler. Each option will use '"-E" name ["=" value]' argument. the options.



getPreprocessDir
public File getPreprocessDir()(Code)
Get the preprocessdir attribute. This corresponds to the "-s" argument. The default value is null. the preprocessdir attribute.



isCompile
public boolean isCompile()(Code)
Get the compile option for the apt compiler. If this is false the "-nocompile" argument will be used. the value of the compile option.



setCompile
public void setCompile(boolean compile)(Code)
Set the compile option for the apt compiler. Default value is true.
Parameters:
  compile - if true set the compile option.



setCompiler
public void setCompiler(String compiler)(Code)
Set the compiler. This is not allowed and a warning log message is made.
Parameters:
  compiler - not used.



setFactory
public void setFactory(String factory)(Code)
Set the factory option for the apt compiler. Default value is null.
Parameters:
  factory - the classname of the factory.



setFactoryPathRef
public void setFactoryPathRef(Reference ref)(Code)
Add a reference to a path to the factoryPath attribute.
Parameters:
  ref - a reference to a path.



setFork
public void setFork(boolean fork)(Code)
Set the fork attribute. Non-forking APT is highly classpath dependent and appears to be too brittle to work. The sole reason this attribute is retained is the superclass does it
Parameters:
  fork - if false; warn the option is ignored.



setPreprocessDir
public void setPreprocessDir(File preprocessDir)(Code)
Set the preprocessdir attribute.
Parameters:
  preprocessDir - where to place processor generated source files.



Fields inherited from org.apache.tools.ant.taskdefs.Javac
protected File[] compileList(Code)(Java Doc)
protected boolean failOnError(Code)(Java Doc)
protected boolean listFiles(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.Javac
protected void checkParameters() throws BuildException(Code)(Java Doc)
protected void compile()(Code)(Java Doc)
public Path createBootclasspath()(Code)(Java Doc)
public Path createClasspath()(Code)(Java Doc)
public ImplementationSpecificArgument createCompilerArg()(Code)(Java Doc)
public Path createExtdirs()(Code)(Java Doc)
public Path createSourcepath()(Code)(Java Doc)
public Path createSrc()(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
public Path getBootclasspath()(Code)(Java Doc)
public Path getClasspath()(Code)(Java Doc)
public String getCompiler()(Code)(Java Doc)
public String getCompilerVersion()(Code)(Java Doc)
public String[] getCurrentCompilerArgs()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String getDebugLevel()(Code)(Java Doc)
public boolean getDepend()(Code)(Java Doc)
public boolean getDeprecation()(Code)(Java Doc)
public File getDestdir()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public String getExecutable()(Code)(Java Doc)
public Path getExtdirs()(Code)(Java Doc)
public boolean getFailonerror()(Code)(Java Doc)
public File[] getFileList()(Code)(Java Doc)
public boolean getIncludeantruntime()(Code)(Java Doc)
public boolean getIncludejavaruntime()(Code)(Java Doc)
public String getJavacExecutable()(Code)(Java Doc)
public boolean getListfiles()(Code)(Java Doc)
public String getMemoryInitialSize()(Code)(Java Doc)
public String getMemoryMaximumSize()(Code)(Java Doc)
public boolean getNowarn()(Code)(Java Doc)
public boolean getOptimize()(Code)(Java Doc)
public String getSource()(Code)(Java Doc)
public Path getSourcepath()(Code)(Java Doc)
public Path getSrcdir()(Code)(Java Doc)
protected String getSystemJavac()(Code)(Java Doc)
public String getTarget()(Code)(Java Doc)
public File getTempdir()(Code)(Java Doc)
public boolean getVerbose()(Code)(Java Doc)
public boolean isForkedJavac()(Code)(Java Doc)
protected boolean isJdkCompiler(String compilerImpl)(Code)(Java Doc)
protected Path recreateSrc()(Code)(Java Doc)
protected void resetFileLists()(Code)(Java Doc)
protected void scanDir(File srcDir, File destDir, String[] files)(Code)(Java Doc)
public void setBootClasspathRef(Reference r)(Code)(Java Doc)
public void setBootclasspath(Path bootclasspath)(Code)(Java Doc)
public void setClasspath(Path classpath)(Code)(Java Doc)
public void setClasspathRef(Reference r)(Code)(Java Doc)
public void setCompiler(String compiler)(Code)(Java Doc)
public void setDebug(boolean debug)(Code)(Java Doc)
public void setDebugLevel(String v)(Code)(Java Doc)
public void setDepend(boolean depend)(Code)(Java Doc)
public void setDeprecation(boolean deprecation)(Code)(Java Doc)
public void setDestdir(File destDir)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public void setExecutable(String forkExec)(Code)(Java Doc)
public void setExtdirs(Path extdirs)(Code)(Java Doc)
public void setFailonerror(boolean fail)(Code)(Java Doc)
public void setFork(boolean f)(Code)(Java Doc)
public void setIncludeantruntime(boolean include)(Code)(Java Doc)
public void setIncludejavaruntime(boolean include)(Code)(Java Doc)
public void setListfiles(boolean list)(Code)(Java Doc)
public void setMemoryInitialSize(String memoryInitialSize)(Code)(Java Doc)
public void setMemoryMaximumSize(String memoryMaximumSize)(Code)(Java Doc)
public void setNowarn(boolean flag)(Code)(Java Doc)
public void setOptimize(boolean optimize)(Code)(Java Doc)
public void setProceed(boolean proceed)(Code)(Java Doc)
public void setSource(String v)(Code)(Java Doc)
public void setSourcepath(Path sourcepath)(Code)(Java Doc)
public void setSourcepathRef(Reference r)(Code)(Java Doc)
public void setSrcdir(Path srcDir)(Code)(Java Doc)
public void setTarget(String target)(Code)(Java Doc)
public void setTempdir(File tmpDir)(Code)(Java Doc)
public void setVerbose(boolean verbose)(Code)(Java Doc)

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.