Java Doc for CompilerAdapter.java in  » Sevlet-Container » tomcat-connectors » org » apache » jk » ant » 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 » Sevlet Container » tomcat connectors » org.apache.jk.ant.compilers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jk.ant.SoTask
   org.apache.jk.ant.compilers.CompilerAdapter

All known Subclasses:   org.apache.jk.ant.compilers.CcCompiler,  org.apache.jk.ant.compilers.MsvcCompiler,
CompilerAdapter
abstract public class CompilerAdapter extends SoTask (Code)
s/javac/C compiler/ The interface that all compiler adapters must adher to.

A compiler adapter is an adapter that interprets the javac's parameters in preperation to be passed off to the compier this adapter represents. As all the necessary values are stored in the Javac task itself, the only thing all adapters need is the javac task, the execute command and a parameterless constructor (for reflection).


author:
   Jay Dickon Glanville jayglanville@home.com
author:
   Costin Manolache


Field Summary
 VectorcompileList
    
 longoldestO
    
 FileoldestOFile
    
 SoTaskso
    

Constructor Summary
public  CompilerAdapter()
    

Method Summary
protected  voidaddDebug(Commandline cmd)
    
protected  voidaddDefines(Commandline cmd)
    
protected  voidaddExtraFlags(Commandline cmd)
    
protected  voidaddIncludes(Commandline cmd)
    
protected  voidaddOptimize(Commandline cmd)
    
protected  voidaddProfile(Commandline cmd)
    
public  voidcompile(Vector sourceFiles)
     Compile the source files.
public  voidcompileSingleFile(Source sourceObj)
    
protected  voiddisplayError(int result, String source, Commandline cmd)
    
public  voidexecute()
    
protected  VectorfindCompileList(Vector srcList)
     Find the subset of the source list that needs compilation.
public  VectorgetCompiledFiles()
    
abstract public  String[]getTargetFiles(Source src)
     Return the files that depend on a src file.
public  booleanneedCompile(Source source)
     Verify if a .c file needs compilation.
public  voidremoveOFiles(Vector srcList)
    
public  voidsetSoTask(SoTask so)
    

Field Detail
compileList
Vector compileList(Code)



oldestO
long oldestO(Code)



oldestOFile
File oldestOFile(Code)



so
SoTask so(Code)




Constructor Detail
CompilerAdapter
public CompilerAdapter()(Code)




Method Detail
addDebug
protected void addDebug(Commandline cmd)(Code)



addDefines
protected void addDefines(Commandline cmd)(Code)



addExtraFlags
protected void addExtraFlags(Commandline cmd)(Code)
Common cc parameters



addIncludes
protected void addIncludes(Commandline cmd)(Code)



addOptimize
protected void addOptimize(Commandline cmd)(Code)



addProfile
protected void addProfile(Commandline cmd)(Code)



compile
public void compile(Vector sourceFiles) throws BuildException(Code)
Compile the source files. The compiler adapter can override either this method ( if it can compile multiple files at once ) or compileSingleFile(). Note that the list includes _all_ sources, findCompileList() can be used to avoid compiling files that are up-to-date.



compileSingleFile
public void compileSingleFile(Source sourceObj) throws BuildException(Code)
Compile single file



displayError
protected void displayError(int result, String source, Commandline cmd) throws BuildException(Code)



execute
public void execute() throws BuildException(Code)



findCompileList
protected Vector findCompileList(Vector srcList) throws BuildException(Code)
Find the subset of the source list that needs compilation.



getCompiledFiles
public Vector getCompiledFiles()(Code)
Return the files that were actually compiled



getTargetFiles
abstract public String[] getTargetFiles(Source src)(Code)
Return the files that depend on a src file. The first item should be the .o file used for linking.



needCompile
public boolean needCompile(Source source)(Code)
Verify if a .c file needs compilation. As with javac, we assume a fixed build structure, where all .o files are in a separate directory from the sources ( no mess ). XXX Hack makedepend somehow into this.



removeOFiles
public void removeOFiles(Vector srcList)(Code)
Remove all generated files, cleanup



setSoTask
public void setSoTask(SoTask so)(Code)



Fields inherited from org.apache.jk.ant.SoTask
protected Vector altSoFiles(Code)(Java Doc)
protected String apxs(Code)(Java Doc)
protected File buildDir(Code)(Java Doc)
protected String cflags(Code)(Java Doc)
protected CompilerAdapter compiler(Code)(Java Doc)
protected int debug(Code)(Java Doc)
protected Vector defines(Code)(Java Doc)
protected Path depends(Code)(Java Doc)
protected ByteArrayOutputStream errorstream(Code)(Java Doc)
protected Vector exports(Code)(Java Doc)
protected Vector imports(Code)(Java Doc)
protected PatternSet includes(Code)(Java Doc)
protected Path libs(Code)(Java Doc)
protected Vector linkOpts(Code)(Java Doc)
protected String module(Code)(Java Doc)
protected Vector modules(Code)(Java Doc)
protected boolean optG(Code)(Java Doc)
protected boolean optWgcc(Code)(Java Doc)
protected boolean optimize(Code)(Java Doc)
protected ByteArrayOutputStream outputstream(Code)(Java Doc)
protected boolean profile(Code)(Java Doc)
protected Vector resources(Code)(Java Doc)
protected String soExt(Code)(Java Doc)
protected String soFile(Code)(Java Doc)
protected Vector src(Code)(Java Doc)
protected Vector srcList(Code)(Java Doc)
protected ExecuteStreamHandler streamhandler(Code)(Java Doc)

Methods inherited from org.apache.jk.ant.SoTask
public void addAltSoFile(JkData altSo)(Code)(Java Doc)
public void addApacheConfig(ApacheConfig apacheCfg)(Code)(Java Doc)
public void addDef(Def var)(Code)(Java Doc)
public void addExport(JkData exp)(Code)(Java Doc)
public void addImport(JkData imp)(Code)(Java Doc)
public void addJniConfig(JniConfig jniCfg)(Code)(Java Doc)
public void addLinkOpt(JkData option)(Code)(Java Doc)
public void addNLMModule(JkData module)(Code)(Java Doc)
public void addResource(JkData res)(Code)(Java Doc)
public void addSrc(FileSet fl)(Code)(Java Doc)
public boolean checkDepend(long oldestO, File oldestOFile)(Code)(Java Doc)
public void closeStreamHandler()(Code)(Java Doc)
public Path createDepends()(Code)(Java Doc)
public PatternSet createIncludes()(Code)(Java Doc)
public Path createLibs()(Code)(Java Doc)
public void createStreamHandler() throws BuildException(Code)(Java Doc)
public void duplicateTo(SoTask so)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
public int execute(Commandline cmd) throws BuildException(Code)(Java Doc)
public CompilerAdapter findCompilerAdapter()(Code)(Java Doc)
public LinkerAdapter findLinkerAdapter()(Code)(Java Doc)
public void findSourceFiles()(Code)(Java Doc)
public void setBuildDir(File s)(Code)(Java Doc)
public void setCflags(String s)(Code)(Java Doc)
public void setDebug(boolean b)(Code)(Java Doc)
public void setExtension(String s)(Code)(Java Doc)
public void setGccWarn(boolean b)(Code)(Java Doc)
public void setModule(String modName)(Code)(Java Doc)
public void setOptimize(boolean b)(Code)(Java Doc)
public void setProfile(boolean b)(Code)(Java Doc)
public void setSoDir(String s)(Code)(Java Doc)
public void setSoFile(String s)(Code)(Java Doc)
public void setTarget(String s)(Code)(Java Doc)
public void setTaskDebug(int i)(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.