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


java.lang.Object
   org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter

All known Subclasses:   org.apache.tools.ant.taskdefs.compilers.JavacExternal,  org.apache.tools.ant.taskdefs.compilers.Gcj,  org.apache.tools.ant.taskdefs.compilers.Kjc,  org.apache.tools.ant.taskdefs.compilers.AptExternalCompilerAdapter,  org.apache.tools.ant.taskdefs.compilers.Jikes,  org.apache.tools.ant.taskdefs.compilers.AptCompilerAdapter,  org.apache.tools.ant.taskdefs.compilers.Javac13,  org.apache.tools.ant.taskdefs.compilers.Jvc,  org.apache.tools.ant.taskdefs.compilers.Javac12,  org.apache.tools.ant.taskdefs.compilers.Sj,
DefaultCompilerAdapter
abstract public class DefaultCompilerAdapter implements CompilerAdapter(Code)
This is the default implementation for the CompilerAdapter interface. Currently, this is a cut-and-paste of the original javac task.
since:
   Ant 1.3


Field Summary
protected  Javacattributes
    
protected  Pathbootclasspath
    
protected  PathcompileClasspath
    
protected  File[]compileList
    
protected  PathcompileSourcepath
    
protected  booleandebug
    
protected  booleandepend
    
protected  booleandeprecation
    
protected  FiledestDir
    
protected  Stringencoding
    
protected  Pathextdirs
    
protected  booleanincludeAntRuntime
    
protected  booleanincludeJavaRuntime
    
final protected static  StringlSep
    
protected  Locationlocation
    
protected  StringmemoryInitialSize
    
protected  StringmemoryMaximumSize
    
protected  booleanoptimize
    
protected  Projectproject
    
protected  Pathsrc
    
protected  Stringtarget
    
protected  booleanverbose
    


Method Summary
protected  voidaddCurrentCompilerArgs(Commandline cmd)
     Adds the command line arguments specific to the current implementation.
protected  voidaddExtdirsToClasspath(Path classpath)
    
protected  booleanassumeJava11()
    
protected  booleanassumeJava12()
    
protected  booleanassumeJava13()
    
protected  booleanassumeJava14()
    
protected  booleanassumeJava15()
    
protected  booleanassumeJava16()
    
protected  intexecuteExternalCompile(String[] args, int firstFileName)
     Do the compile with the specified arguments.
Parameters:
  args - - arguments to pass to process on command line
Parameters:
  firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem.
protected  intexecuteExternalCompile(String[] args, int firstFileName, boolean quoteFiles)
     Do the compile with the specified arguments.
Parameters:
  args - - arguments to pass to process on command line
Parameters:
  firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem.
Parameters:
  quoteFiles - - if set to true, filenames containingspaces will be quoted when they appear in the external file.This is necessary when running JDK 1.4's javac and probablyothers.
protected  PathgetBootClassPath()
     Combines a user specified bootclasspath with the system bootclasspath taking build.sysclasspath into account.
protected  PathgetCompileClasspath()
     Builds the compilation classpath.
public  JavacgetJavac()
    
protected  StringgetNoDebugArgument()
     The argument the compiler wants to see if the debug attribute has been set to false.
protected  ProjectgetProject()
     Get the project this compiler adapter was created in.
protected  voidlogAndAddFilesToCompile(Commandline cmd)
    
public  voidsetJavac(Javac attributes)
     Set the Javac instance which contains the configured compilation attributes.
protected  CommandlinesetupJavacCommand()
     Set up the command line.
protected  CommandlinesetupJavacCommand(boolean debugLevelCheck)
     Does the command line argument processing for classic and adds the files to compile as well.
protected  CommandlinesetupJavacCommandlineSwitches(Commandline cmd)
     Get the command line arguments for the switches.
protected  CommandlinesetupJavacCommandlineSwitches(Commandline cmd, boolean useDebugLevel)
     Does the command line argument processing common to classic and modern.
protected  CommandlinesetupModernJavacCommand()
     Does the command line argument processing for modern and adds the files to compile as well.
protected  CommandlinesetupModernJavacCommandlineSwitches(Commandline cmd)
     Does the command line argument processing for modern.

Field Detail
attributes
protected Javac attributes(Code)



bootclasspath
protected Path bootclasspath(Code)



compileClasspath
protected Path compileClasspath(Code)



compileList
protected File[] compileList(Code)



compileSourcepath
protected Path compileSourcepath(Code)



debug
protected boolean debug(Code)



depend
protected boolean depend(Code)



deprecation
protected boolean deprecation(Code)



destDir
protected File destDir(Code)



encoding
protected String encoding(Code)



extdirs
protected Path extdirs(Code)



includeAntRuntime
protected boolean includeAntRuntime(Code)



includeJavaRuntime
protected boolean includeJavaRuntime(Code)



lSep
final protected static String lSep(Code)



location
protected Location location(Code)



memoryInitialSize
protected String memoryInitialSize(Code)



memoryMaximumSize
protected String memoryMaximumSize(Code)



optimize
protected boolean optimize(Code)



project
protected Project project(Code)



src
protected Path src(Code)



target
protected String target(Code)



verbose
protected boolean verbose(Code)





Method Detail
addCurrentCompilerArgs
protected void addCurrentCompilerArgs(Commandline cmd)(Code)
Adds the command line arguments specific to the current implementation.
Parameters:
  cmd - the command line to use



addExtdirsToClasspath
protected void addExtdirsToClasspath(Path classpath)(Code)
Add extdirs to classpath
Parameters:
  classpath - the classpath to use



assumeJava11
protected boolean assumeJava11()(Code)
Shall we assume JDK 1.1 command line switches? true if jdk 1.1
since:
   Ant 1.5



assumeJava12
protected boolean assumeJava12()(Code)
Shall we assume JDK 1.2 command line switches? true if jdk 1.2
since:
   Ant 1.5



assumeJava13
protected boolean assumeJava13()(Code)
Shall we assume JDK 1.3 command line switches? true if jdk 1.3
since:
   Ant 1.5



assumeJava14
protected boolean assumeJava14()(Code)
Shall we assume JDK 1.4 command line switches? true if jdk 1.4
since:
   Ant 1.6.3



assumeJava15
protected boolean assumeJava15()(Code)
Shall we assume JDK 1.5 command line switches? true if JDK 1.5
since:
   Ant 1.6.3



assumeJava16
protected boolean assumeJava16()(Code)
Shall we assume JDK 1.6 command line switches? true if JDK 1.6
since:
   Ant 1.7



executeExternalCompile
protected int executeExternalCompile(String[] args, int firstFileName)(Code)
Do the compile with the specified arguments.
Parameters:
  args - - arguments to pass to process on command line
Parameters:
  firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem. the exit code of the compilation



executeExternalCompile
protected int executeExternalCompile(String[] args, int firstFileName, boolean quoteFiles)(Code)
Do the compile with the specified arguments.
Parameters:
  args - - arguments to pass to process on command line
Parameters:
  firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem.
Parameters:
  quoteFiles - - if set to true, filenames containingspaces will be quoted when they appear in the external file.This is necessary when running JDK 1.4's javac and probablyothers. the exit code of the compilation
since:
   Ant 1.6



getBootClassPath
protected Path getBootClassPath()(Code)
Combines a user specified bootclasspath with the system bootclasspath taking build.sysclasspath into account. a non-null Path instance that combines the userspecified and the system bootclasspath.



getCompileClasspath
protected Path getCompileClasspath()(Code)
Builds the compilation classpath. the compilation class path



getJavac
public Javac getJavac()(Code)
Get the Javac task instance associated with this compiler adapter the configured Javac task instance used by this adapter.



getNoDebugArgument
protected String getNoDebugArgument()(Code)
The argument the compiler wants to see if the debug attribute has been set to false.

A return value of null means no argument at all.

"-g:none" unless we expect to invoke a JDK 1.1 compiler.
since:
   Ant 1.6.3



getProject
protected Project getProject()(Code)
Get the project this compiler adapter was created in. the owner project
since:
   Ant 1.6



logAndAddFilesToCompile
protected void logAndAddFilesToCompile(Commandline cmd)(Code)
Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
Parameters:
  cmd - the command line



setJavac
public void setJavac(Javac attributes)(Code)
Set the Javac instance which contains the configured compilation attributes.
Parameters:
  attributes - a configured Javac task.



setupJavacCommand
protected Commandline setupJavacCommand()(Code)
Set up the command line. the command line



setupJavacCommand
protected Commandline setupJavacCommand(boolean debugLevelCheck)(Code)
Does the command line argument processing for classic and adds the files to compile as well.
Parameters:
  debugLevelCheck - if true set the debug level with the -g switch the command line



setupJavacCommandlineSwitches
protected Commandline setupJavacCommandlineSwitches(Commandline cmd)(Code)
Get the command line arguments for the switches.
Parameters:
  cmd - the command line the command line



setupJavacCommandlineSwitches
protected Commandline setupJavacCommandlineSwitches(Commandline cmd, boolean useDebugLevel)(Code)
Does the command line argument processing common to classic and modern. Doesn't add the files to compile.
Parameters:
  cmd - the command line
Parameters:
  useDebugLevel - if true set set the debug level with the -g switch the command line



setupModernJavacCommand
protected Commandline setupModernJavacCommand()(Code)
Does the command line argument processing for modern and adds the files to compile as well. the command line



setupModernJavacCommandlineSwitches
protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd)(Code)
Does the command line argument processing for modern. Doesn't add the files to compile.
Parameters:
  cmd - the command line the command line



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.