|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MatchingTask org.python.util.JythoncAntTask
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.
Constructor Summary | |
JythoncAntTask()
constructor set up the search pattern |
Method Summary | |
org.apache.tools.ant.types.Path |
createClasspath()
Add a classpath. |
void |
execute()
Exectute the compiler. |
java.lang.String |
getCompilerOptions()
get the compiler option, null if none. |
java.io.File |
getJythoncPY()
Get the path to the jython compiler file (in python). |
java.io.File |
getPythonHome()
Get the path to the jython home (or python home) |
void |
setAddpackages(java.lang.String aValue)
Include Java dependencies from this list of packages. |
void |
setAll(boolean aValue)
Include all of the Jython libraries (everything in core + compiler and parser). |
void |
setArgs(java.lang.String aValue)
sets some additional args to send to jythonc. |
void |
setBean(java.io.File aJarFileBean)
Compile into jarfile, including the correct manifest for the bean. |
void |
setClasspath(org.apache.tools.ant.types.Path aClasspath)
Sets the classpath field. |
void |
setCompiler(java.lang.String aCompiler)
Set the compiler. |
void |
setCompileropts(java.lang.String aValue)
Options passed directly to the Java compiler. |
void |
setCore(boolean aValue)
Include the core Jython libraries (about 130K). |
void |
setDeep(boolean aValue)
Compile all Python dependencies of the module. |
void |
setDestdir(java.io.File aFile)
Home for the destination (build). |
void |
setFalsenames(java.lang.String aValue)
A comma-separated list of names that are always false. |
void |
setHome(java.io.File aFile)
Jython home directory. |
void |
setJar(java.io.File aJarFile)
Specifies a .jar file to create and put the results of the freeze into. |
void |
setJythoncpy(java.io.File aValue)
Change the default Python compiler. |
void |
setPackage(java.lang.String aString)
Put all compiled code into the named Java package. |
void |
setSkip(java.lang.String aValue)
Don't include any of these modules in compilation. |
void |
setSrcdir(java.io.File aFile)
Home for the source. |
void |
setWorkdir(java.io.File aValue)
Specify the working directory where the generated Java source code is placed. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JythoncAntTask()
Method Detail |
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspath(org.apache.tools.ant.types.Path aClasspath)
aClasspath
- A Path object representing the "classpath" attribute.public void setPackage(java.lang.String aString)
aString
- the packake name.public void setJar(java.io.File aJarFile)
public void setCore(boolean aValue)
public void setAll(boolean aValue)
public void setBean(java.io.File aJarFileBean)
public void setSkip(java.lang.String aValue)
public void setDeep(boolean aValue)
public void setAddpackages(java.lang.String aValue)
public void setWorkdir(java.io.File aValue)
public void setCompiler(java.lang.String aCompiler)
public void setCompileropts(java.lang.String aValue)
public void setFalsenames(java.lang.String aValue)
public void setHome(java.io.File aFile)
public void setSrcdir(java.io.File aFile)
public void setDestdir(java.io.File aFile)
public void setJythoncpy(java.io.File aValue)
public void setArgs(java.lang.String aValue)
public java.lang.String getCompilerOptions()
public java.io.File getPythonHome()
public java.io.File getJythoncPY()
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |