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.
| Modifier and Type | Field and Description |
|---|---|
| protected String | addpackages
Include Java dependencies from this list of packages. |
| protected boolean | all
Include all of the Jython libraries (everything in core + compiler and parser). |
| protected Path | classpath
The classpath for the virtual machine. |
| protected String | compiler
Compiler name. |
| protected String | compileropts
Use a different compiler than `standard' javac. |
| protected boolean | core
Include the core Jython libraries (about 130K). |
| protected boolean | deep
Compile all Python dependencies of the module. |
| protected File | destDir
Destination, build directory. |
| protected String | extraArgs
aditionnals args. |
| protected String | falsenames
Options passed directly to the Java compiler. |
| protected File | jarFile
Specifies a .jar file to create and put the results of the freeze into. |
| protected File | jarFileBean
Compile into jarfile, including the correct manifest for the bean. |
| protected static final String | |
| protected static final String | |
| protected File | jythoncpy
the compiler. |
| protected File | jythonHome
Path to jython directory. |
| protected String | packageName
Put all compiled code into the named Java package. |
| protected String | skipModule
Don't include any of these modules in compilation. |
| protected File | srcDir
Source directory. |
| protected File | workdir
Specify the working directory where the generated Java source code is placed. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Path | |
| public void | |
| public String | |
| public File | |
| public File | |
| public void | |
| public void | setAll(boolean aValue)
Include all of the Jython libraries (everything in core + compiler and parser). |
| public void | |
| public void | |
| public void | setClasspath(Path
A Path object representing the "classpath" attribute. aClasspath)Sets the classpath field. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setWorkdir(File aValue)
Specify the working directory where the generated Java source code is placed. |
| addpackages | back to summary |
|---|---|
| protected String addpackages Include Java dependencies from this list of packages. Default is org.python.modules and org.apache.oro.text.regex. | |
| all | back to summary |
|---|---|
| protected boolean all Include all of the Jython libraries (everything in core + compiler and parser). | |
| classpath | back to summary |
|---|---|
| protected Path classpath The classpath for the virtual machine. | |
| compiler | back to summary |
|---|---|
| protected String compiler Compiler name. | |
| compileropts | back to summary |
|---|---|
| protected String compileropts 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 | back to summary |
|---|---|
| protected boolean core Include the core Jython libraries (about 130K). Needed for applets since Netscape doesn't yet support multiple archives. | |
| deep | back to summary |
|---|---|
| protected boolean deep Compile all Python dependencies of the module. This is used for creating applets. | |
| destDir | back to summary |
|---|---|
| protected File destDir Destination, build directory. | |
| extraArgs | back to summary |
|---|---|
| protected String extraArgs aditionnals args. | |
| falsenames | back to summary |
|---|---|
| protected String falsenames Options passed directly to the Java compiler. Alternatively, you can set the property python.jythonc.compileropts in the registry. | |
| jarFile | back to summary |
|---|---|
| protected File jarFile Specifies a .jar file to create and put the results of the freeze into. Set the deep option to true. | |
| jarFileBean | back to summary |
|---|---|
| protected File jarFileBean Compile into jarfile, including the correct manifest for the bean. | |
| JYTHON_CLASS | back to summary |
|---|---|
| protected static final String JYTHON_CLASS | |
| JYTHONC_PY | back to summary |
|---|---|
| protected static final String JYTHONC_PY | |
| jythoncpy | back to summary |
|---|---|
| protected File jythoncpy the compiler. | |
| jythonHome | back to summary |
|---|---|
| protected File jythonHome Path to jython directory. | |
| packageName | back to summary |
|---|---|
| protected String packageName Put all compiled code into the named Java package. | |
| skipModule | back to summary |
|---|---|
| protected String skipModule Don't include any of these modules in compilation. This is a comma-separated list of modules. | |
| srcDir | back to summary |
|---|---|
| protected File srcDir Source directory. | |
| workdir | back to summary |
|---|---|
| protected File workdir Specify the working directory where the generated Java source code is placed. Default is "./jpywork" | |
| JythoncAntTask | back to summary |
|---|---|
| public JythoncAntTask() constructor set up the search pattern | |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Add a classpath. Used to handle the nested classpath element.
| |
| execute | back to summary |
|---|---|
| public void execute() Overrides org. Exectute the compiler. | |
| getCompilerOptions | back to summary |
|---|---|
| public String getCompilerOptions() get the compiler option, null if none. | |
| getJythoncPY | back to summary |
|---|---|
| public File getJythoncPY() Get the path to the jython compiler file (in python). | |
| getPythonHome | back to summary |
|---|---|
| public File getPythonHome() Get the path to the jython home (or python home) | |
| setAddpackages | back to summary |
|---|---|
| public void setAddpackages(String aValue) Include Java dependencies from this list of packages. Default is org.python.modules and org.apache.oro.text.regex. | |
| setAll | back to summary |
|---|---|
| public void setAll(boolean aValue) Include all of the Jython libraries (everything in core + compiler and parser). Set the deep option to true. | |
| setArgs | back to summary |
|---|---|
| public void setArgs(String aValue) sets some additional args to send to jythonc. | |
| setBean | back to summary |
|---|---|
| public void setBean(File aJarFileBean) Compile into jarfile, including the correct manifest for the bean. | |
| setClasspath | back to summary |
|---|---|
| public void setClasspath(Path aClasspath) Sets the classpath field.
| |
| setCompiler | back to summary |
|---|---|
| public void setCompiler(String aCompiler) Set the compiler. | |
| setCompileropts | back to summary |
|---|---|
| public void setCompileropts(String aValue) Options passed directly to the Java compiler. Alternatively, you can set the property python.jythonc.compileropts in the registry. | |
| setCore | back to summary |
|---|---|
| public void setCore(boolean aValue) 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 | back to summary |
|---|---|
| public void setDeep(boolean aValue) Compile all Python dependencies of the module. This is used for creating applets. | |
| setDestdir | back to summary |
|---|---|
| public void setDestdir(File aFile) Home for the destination (build). | |
| setFalsenames | back to summary |
|---|---|
| public void setFalsenames(String aValue) A comma-separated list of names that are always false. Can be used to short-circuit if clauses. | |
| setHome | back to summary |
|---|---|
| public void setHome(File aFile) Jython home directory. | |
| setJar | back to summary |
|---|---|
| public void setJar(File aJarFile) Specifies a .jar file to create and put the results of the freeze into. Set the deep option to true. | |
| setJythoncpy | back to summary |
|---|---|
| public void setJythoncpy(File aValue) Change the default Python compiler. | |
| setPackage | back to summary |
|---|---|
| public void setPackage(String aString) Put all compiled code into the named Java package.
| |
| setSkip | back to summary |
|---|---|
| public void setSkip(String aValue) Don't include any of these modules in compilation. This is a comma-separated list of modules. | |
| setSrcdir | back to summary |
|---|---|
| public void setSrcdir(File aFile) Home for the source. | |
| setWorkdir | back to summary |
|---|---|
| public void setWorkdir(File aValue) Specify the working directory where the generated Java source code is placed. Default is "./jpywork" | |