public class JythoncAntTask
extends org.apache.tools.ant.taskdefs.MatchingTask
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 java.lang.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 org.apache.tools.ant.types.Path |
classpath
The classpath for the virtual machine.
|
protected java.lang.String |
compiler
Compiler name.
|
protected java.lang.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 java.io.File |
destDir
Destination, build directory.
|
protected java.lang.String |
extraArgs
aditionnals args.
|
protected java.lang.String |
falsenames
Options passed directly to the Java compiler.
|
protected java.io.File |
jarFile
Specifies a .jar file to create and put the results of
the freeze into.
|
protected java.io.File |
jarFileBean
Compile into jarfile, including the correct manifest for the bean.
|
protected static java.lang.String |
JYTHON_CLASS |
protected static java.lang.String |
JYTHONC_PY |
protected java.io.File |
jythoncpy
the compiler.
|
protected java.io.File |
jythonHome
Path to jython directory.
|
protected java.lang.String |
packageName
Put all compiled code into the named Java package.
|
protected java.lang.String |
skipModule
Don't include any of these modules in compilation.
|
protected java.io.File |
srcDir
Source directory.
|
protected java.io.File |
workdir
Specify the working directory where the generated Java source code is
placed.
|
Constructor and Description |
---|
JythoncAntTask()
constructor set up the search pattern
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected static final java.lang.String JYTHONC_PY
protected static final java.lang.String JYTHON_CLASS
protected org.apache.tools.ant.types.Path classpath
protected java.lang.String packageName
protected java.io.File jarFile
protected java.io.File jythoncpy
protected boolean deep
protected boolean core
protected boolean all
protected java.lang.String addpackages
protected java.io.File jarFileBean
protected java.lang.String skipModule
protected java.lang.String compiler
protected java.lang.String compileropts
protected java.lang.String falsenames
protected java.io.File jythonHome
protected java.io.File destDir
protected java.io.File srcDir
protected java.io.File workdir
protected java.lang.String extraArgs
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()
execute
in class org.apache.tools.ant.Task