Top Description Fields Constructors Methods
org.python.util

public Class JycompileAntTask

extends GlobMatchingTask
Class Inheritance
Imports
java.io.File, java.util.Properties, .Set, org.apache.tools.ant.BuildException, org.python.core.PyException, .PySystemState, .RegistryKey, .imp, org.python.modules._py_compile

Compiles all python files in a directory to bytecode, and writes them to another directory, possibly the same one.

Field Summary

Inherited from org.python.util.GlobMatchingTask:
destDir

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
compile(File src, File compiled, String moduleName)

Compiles the python file src to bytecode filling in moduleName as its name, and stores it in compiled.

protected String
protected String
public void
process(Set<File> toCompile)

Implements abstract org.python.util.GlobMatchingTask.process.

Inherited from org.python.util.GlobMatchingTask:
checkParametersexecutegetDestdirgetSrcdirscanDirsetDestdirsetSrcdir

Constructor Detail

JycompileAntTaskback to summary
public JycompileAntTask()

Method Detail

compileback to summary
protected void compile(File src, File compiled, String moduleName)

Compiles the python file src to bytecode filling in moduleName as its name, and stores it in compiled. This is called by process for every file that's compiled, so subclasses can override this method to affect or track the compilation.

getFromback to summary
protected String getFrom()

Implements abstract org.python.util.GlobMatchingTask.getFrom.

getToback to summary
protected String getTo()

Implements abstract org.python.util.GlobMatchingTask.getTo.

processback to summary
public void process(Set<File> toCompile) throws BuildException

Implements abstract org.python.util.GlobMatchingTask.process.

Annotations
@Override