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


org.apache.jk.ant.SoTask

All known Subclasses:   org.apache.jk.ant.compilers.CompilerAdapter,  org.apache.jk.ant.compilers.LinkerAdapter,
SoTask
public class SoTask extends Task (Code)
Task to generate a .so file, similar with ( or using ) libtool. I hate libtool, so long term I would like to replace most of it with decent java code. Short term it'll just use libtool and hide some of the ugliness. arguments:
  • source


author:
   Costin Manolache
author:
   Mike Anderson
author:
   Ignacio J. Ortega



Field Summary
protected  VectoraltSoFiles
    
protected  Stringapxs
    
protected  FilebuildDir
    
protected  Stringcflags
    
protected  CompilerAdaptercompiler
    
protected  intdebug
    
protected  Vectordefines
    
protected  Pathdepends
    
protected  ByteArrayOutputStreamerrorstream
    
protected  Vectorexports
    
protected  Vectorimports
    
protected  PatternSetincludes
    
protected  Pathlibs
    
protected  VectorlinkOpts
    
protected  Stringmodule
    
protected  Vectormodules
    
protected  booleanoptG
    
protected  booleanoptWgcc
    
protected  booleanoptimize
    
protected  ByteArrayOutputStreamoutputstream
    
protected  booleanprofile
    
protected  Vectorresources
    
protected  StringsoExt
    
protected  StringsoFile
    
protected  Vectorsrc
    
protected  VectorsrcList
    
protected  ExecuteStreamHandlerstreamhandler
    

Constructor Summary
public  SoTask()
    

Method Summary
public  voidaddAltSoFile(JkData altSo)
     Add an alternate target since some platforms (NetWare) have file name limitations.
public  voidaddApacheConfig(ApacheConfig apacheCfg)
    
public  voidaddDef(Def var)
     Add a -D option.
public  voidaddExport(JkData exp)
    
public  voidaddImport(JkData imp)
    
public  voidaddJniConfig(JniConfig jniCfg)
    
public  voidaddLinkOpt(JkData option)
    
public  voidaddNLMModule(JkData module)
    
public  voidaddResource(JkData res)
    
public  voidaddSrc(FileSet fl)
    
public  booleancheckDepend(long oldestO, File oldestOFile)
     If any file declared in element has changed, we'll do a full rebuild.
public  voidcloseStreamHandler()
    
public  PathcreateDepends()
     General dependencies.
public  PatternSetcreateIncludes()
    
public  PathcreateLibs()
     Libraries ( .a, .so or .dll ) files to link to.
public  voidcreateStreamHandler()
    
public  voidduplicateTo(SoTask so)
    
public  voidexecute()
    
public  intexecute(Commandline cmd)
    
public  CompilerAdapterfindCompilerAdapter()
    
public  LinkerAdapterfindLinkerAdapter()
    
public  voidfindSourceFiles()
    
public  voidsetBuildDir(File s)
    
public  voidsetCflags(String s)
    
public  voidsetDebug(boolean b)
    
public  voidsetExtension(String s)
     Set the extension for the target.
public  voidsetGccWarn(boolean b)
    
public  voidsetModule(String modName)
     The name of the target file.
public  voidsetOptimize(boolean b)
    
public  voidsetProfile(boolean b)
    
public  voidsetSoDir(String s)
    
public  voidsetSoFile(String s)
    
public  voidsetTarget(String s)
     Set the target for this compilation.
public  voidsetTaskDebug(int i)
    

Field Detail
altSoFiles
protected Vector altSoFiles(Code)



apxs
protected String apxs(Code)



buildDir
protected File buildDir(Code)



cflags
protected String cflags(Code)



compiler
protected CompilerAdapter compiler(Code)



debug
protected int debug(Code)



defines
protected Vector defines(Code)



depends
protected Path depends(Code)



errorstream
protected ByteArrayOutputStream errorstream(Code)



exports
protected Vector exports(Code)



imports
protected Vector imports(Code)



includes
protected PatternSet includes(Code)



libs
protected Path libs(Code)



linkOpts
protected Vector linkOpts(Code)



module
protected String module(Code)



modules
protected Vector modules(Code)



optG
protected boolean optG(Code)



optWgcc
protected boolean optWgcc(Code)



optimize
protected boolean optimize(Code)



outputstream
protected ByteArrayOutputStream outputstream(Code)



profile
protected boolean profile(Code)



resources
protected Vector resources(Code)



soExt
protected String soExt(Code)



soFile
protected String soFile(Code)



src
protected Vector src(Code)



srcList
protected Vector srcList(Code)



streamhandler
protected ExecuteStreamHandler streamhandler(Code)




Constructor Detail
SoTask
public SoTask()(Code)




Method Detail
addAltSoFile
public void addAltSoFile(JkData altSo)(Code)
Add an alternate target since some platforms (NetWare) have file name limitations.



addApacheConfig
public void addApacheConfig(ApacheConfig apacheCfg)(Code)



addDef
public void addDef(Def var)(Code)
Add a -D option. Note that each define has an if/unless attribute



addExport
public void addExport(JkData exp)(Code)
Add an export file/symbol for NetWare or win32 platform



addImport
public void addImport(JkData imp)(Code)
Add an import file/symbol for NetWare or win32 platform



addJniConfig
public void addJniConfig(JniConfig jniCfg)(Code)



addLinkOpt
public void addLinkOpt(JkData option)(Code)
Add a link option for NetWare or win32 platform



addNLMModule
public void addNLMModule(JkData module)(Code)
Add an NLMModule dependancy



addResource
public void addResource(JkData res)(Code)
Add an resource file on win32 platform



addSrc
public void addSrc(FileSet fl)(Code)
Source files ( .c ) a nested src element.



checkDepend
public boolean checkDepend(long oldestO, File oldestOFile)(Code)
If any file declared in element has changed, we'll do a full rebuild.



closeStreamHandler
public void closeStreamHandler()(Code)



createDepends
public Path createDepends()(Code)
General dependencies. If any of the files is modified ( i.e. is newer than the oldest .o ) we'll recompile everything. This can be used for headers ( until we add support for makedepend) or any important file that could invalidate the build. Another example is checking httpd or apxs ( if a new version was installed, maybe some flags or symbols changed )



createIncludes
public PatternSet createIncludes()(Code)
Include files



createLibs
public Path createLibs()(Code)
Libraries ( .a, .so or .dll ) files to link to.



createStreamHandler
public void createStreamHandler() throws BuildException(Code)



duplicateTo
public void duplicateTo(SoTask so)(Code)



execute
public void execute() throws BuildException(Code)



execute
public int execute(Commandline cmd) throws BuildException(Code)



findCompilerAdapter
public CompilerAdapter findCompilerAdapter()(Code)



findLinkerAdapter
public LinkerAdapter findLinkerAdapter()(Code)



findSourceFiles
public void findSourceFiles()(Code)
Find all source files declared with elements



setBuildDir
public void setBuildDir(File s)(Code)
Directory where intermediary objects will be generated



setCflags
public void setCflags(String s)(Code)



setDebug
public void setDebug(boolean b)(Code)
Add debug information



setExtension
public void setExtension(String s)(Code)
Set the extension for the target. This will depend on the platform we are compiling for.



setGccWarn
public void setGccWarn(boolean b)(Code)
Gcc warnings



setModule
public void setModule(String modName)(Code)
The name of the target file. (XXX including extension - this should be automatically added )



setOptimize
public void setOptimize(boolean b)(Code)
Add debug information



setProfile
public void setProfile(boolean b)(Code)
Add profiling information



setSoDir
public void setSoDir(String s)(Code)
Directory where the .so file will be generated



setSoFile
public void setSoFile(String s)(Code)



setTarget
public void setTarget(String s)(Code)
Set the target for this compilation. Don't include any directory or suffix ( not sure about prefix - we may want to add lib automatically for unix, and nothing on win/etc ? ).



setTaskDebug
public void setTaskDebug(int i)(Code)
Debug the task



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