Java Doc for JythoncAntTask.java in  » Testing » Marathon » org » python » util » 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 » Testing » Marathon » org.python.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.python.util.JythoncAntTask

JythoncAntTask
public class JythoncAntTask extends MatchingTask (Code)
Jythonc is a Python compiler into Java Bytecode. So you can call your python code from Java, and call you java code from Python, create bean, servlet...

The task is a directory based task, so attributes like includes="*.py" and excludes="broken.py" can be used to control the files pulled in. By default, all *.py files from the project folder down are included in the command.
author:
   Cyrille Morvan - cmorvan@ingenosya.com - Ingenosya France
version:
   1.0



Field Summary
final protected static  StringJYTHONC_PY
    
final protected static  StringJYTHON_CLASS
    
protected  Stringaddpackages
     Include Java dependencies from this list of packages.
protected  booleanall
     Include all of the Jython libraries (everything in core + compiler and parser).
protected  Pathclasspath
     The classpath for the virtual machine.
protected  Stringcompiler
     Compiler name.
protected  Stringcompileropts
     Use a different compiler than `standard' javac.
protected  booleancore
     Include the core Jython libraries (about 130K).
protected  booleandeep
     Compile all Python dependencies of the module.
protected  FiledestDir
     Destination, build directory.
protected  StringextraArgs
     aditionnals args.
protected  Stringfalsenames
     Options passed directly to the Java compiler.
protected  FilejarFile
     Specifies a .jar file to create and put the results of the freeze into.
protected  FilejarFileBean
     Compile into jarfile, including the correct manifest for the bean.
protected  FilejythonHome
     Path to jython directory.
protected  Filejythoncpy
     the compiler.
protected  StringpackageName
     Put all compiled code into the named Java package.
protected  StringskipModule
     Don't include any of these modules in compilation.
protected  FilesrcDir
     Source directory.
protected  Fileworkdir
     Specify the working directory where the generated Java source code is placed.

Constructor Summary
public  JythoncAntTask()
    

Method Summary
public  PathcreateClasspath()
     Add a classpath.
public  voidexecute()
     Exectute the compiler.
public  StringgetCompilerOptions()
     get the compiler option, null if none.
public  FilegetJythoncPY()
     Get the path to the jython compiler file (in python).
public  FilegetPythonHome()
    
public  voidsetAddpackages(String aValue)
     Include Java dependencies from this list of packages.
public  voidsetAll(boolean aValue)
     Include all of the Jython libraries (everything in core + compiler and parser).
public  voidsetArgs(String aValue)
     sets some additional args to send to jythonc.
public  voidsetBean(File aJarFileBean)
     Compile into jarfile, including the correct manifest for the bean.
public  voidsetClasspath(Path aClasspath)
     Sets the classpath field.
public  voidsetCompiler(String aCompiler)
     Set the compiler.
public  voidsetCompileropts(String aValue)
     Options passed directly to the Java compiler.
public  voidsetCore(boolean aValue)
     Include the core Jython libraries (about 130K). Needed for applets since Netscape doesn't yet support multiple archives.
public  voidsetDeep(boolean aValue)
     Compile all Python dependencies of the module.
public  voidsetDestdir(File aFile)
     Home for the destination (build).
public  voidsetFalsenames(String aValue)
     A comma-separated list of names that are always false.
public  voidsetHome(File aFile)
     Jython home directory.
public  voidsetJar(File aJarFile)
     Specifies a .jar file to create and put the results of the freeze into.
public  voidsetJythoncpy(File aValue)
     Change the default Python compiler.
public  voidsetPackage(String aString)
     Put all compiled code into the named Java package.
public  voidsetSkip(String aValue)
     Don't include any of these modules in compilation.
public  voidsetSrcdir(File aFile)
     Home for the source.
public  voidsetWorkdir(File aValue)
     Specify the working directory where the generated Java source code is placed.

Field Detail
JYTHONC_PY
final protected static String JYTHONC_PY(Code)



JYTHON_CLASS
final protected static String JYTHON_CLASS(Code)



addpackages
protected String addpackages(Code)
Include Java dependencies from this list of packages. Default is org.python.modules and org.apache.oro.text.regex.



all
protected boolean all(Code)
Include all of the Jython libraries (everything in core + compiler and parser).



classpath
protected Path classpath(Code)
The classpath for the virtual machine.



compiler
protected String compiler(Code)
Compiler name.



compileropts
protected String compileropts(Code)
Use a different compiler than `standard' javac. If this is set to "NONE" then compile ends with the generation of the Java source file. Alternatively, you can set the property python.jythonc.compiler in the registry.



core
protected boolean core(Code)
Include the core Jython libraries (about 130K). Needed for applets since Netscape doesn't yet support multiple archives.



deep
protected boolean deep(Code)
Compile all Python dependencies of the module. This is used for creating applets.



destDir
protected File destDir(Code)
Destination, build directory.



extraArgs
protected String extraArgs(Code)
aditionnals args.



falsenames
protected String falsenames(Code)
Options passed directly to the Java compiler. Alternatively, you can set the property python.jythonc.compileropts in the registry.



jarFile
protected File jarFile(Code)
Specifies a .jar file to create and put the results of the freeze into. Set the deep option to true.



jarFileBean
protected File jarFileBean(Code)
Compile into jarfile, including the correct manifest for the bean.



jythonHome
protected File jythonHome(Code)
Path to jython directory.



jythoncpy
protected File jythoncpy(Code)
the compiler.



packageName
protected String packageName(Code)
Put all compiled code into the named Java package.



skipModule
protected String skipModule(Code)
Don't include any of these modules in compilation. This is a comma-separated list of modules.



srcDir
protected File srcDir(Code)
Source directory.



workdir
protected File workdir(Code)
Specify the working directory where the generated Java source code is placed. Default is "./jpywork"




Constructor Detail
JythoncAntTask
public JythoncAntTask()(Code)
constructor set up the search pattern




Method Detail
createClasspath
public Path createClasspath()(Code)
Add a classpath. Used to handle the nested classpath element. A Path object representing the classpath to be used.



execute
public void execute()(Code)
Exectute the compiler.



getCompilerOptions
public String getCompilerOptions()(Code)
get the compiler option, null if none.



getJythoncPY
public File getJythoncPY()(Code)
Get the path to the jython compiler file (in python).



getPythonHome
public File getPythonHome()(Code)
Get the path to the jython home (or python home)



setAddpackages
public void setAddpackages(String aValue)(Code)
Include Java dependencies from this list of packages. Default is org.python.modules and org.apache.oro.text.regex.



setAll
public void setAll(boolean aValue)(Code)
Include all of the Jython libraries (everything in core + compiler and parser). Set the deep option to true.



setArgs
public void setArgs(String aValue)(Code)
sets some additional args to send to jythonc.



setBean
public void setBean(File aJarFileBean)(Code)
Compile into jarfile, including the correct manifest for the bean.



setClasspath
public void setClasspath(Path aClasspath)(Code)
Sets the classpath field.
Parameters:
  aClasspath - A Path object representing the "classpath" attribute.



setCompiler
public void setCompiler(String aCompiler)(Code)
Set the compiler.



setCompileropts
public void setCompileropts(String aValue)(Code)
Options passed directly to the Java compiler. Alternatively, you can set the property python.jythonc.compileropts in the registry.



setCore
public void setCore(boolean aValue)(Code)
Include the core Jython libraries (about 130K). Needed for applets since Netscape doesn't yet support multiple archives. Set the deep option to true.



setDeep
public void setDeep(boolean aValue)(Code)
Compile all Python dependencies of the module. This is used for creating applets.



setDestdir
public void setDestdir(File aFile)(Code)
Home for the destination (build).



setFalsenames
public void setFalsenames(String aValue)(Code)
A comma-separated list of names that are always false. Can be used to short-circuit if clauses.



setHome
public void setHome(File aFile)(Code)
Jython home directory.



setJar
public void setJar(File aJarFile)(Code)
Specifies a .jar file to create and put the results of the freeze into. Set the deep option to true.



setJythoncpy
public void setJythoncpy(File aValue)(Code)
Change the default Python compiler.



setPackage
public void setPackage(String aString)(Code)
Put all compiled code into the named Java package.
Parameters:
  aString - the packake name.



setSkip
public void setSkip(String aValue)(Code)
Don't include any of these modules in compilation. This is a comma-separated list of modules.



setSrcdir
public void setSrcdir(File aFile)(Code)
Home for the source.



setWorkdir
public void setWorkdir(File aValue)(Code)
Specify the working directory where the generated Java source code is placed. Default is "./jpywork"



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