public class Kawac
extends MatchingTask
When this task executes, it will compile any listed source file which is younger than its corresponding class file.
Superficially based upon the standard Ant Javac Task, but with FileSet and FileList support as well.
Constructor and Description |
---|
Kawac()
Kawac task for compilation of Kawa files.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FileSelector selector) |
void |
addAnd(AndSelector selector) |
void |
addArg(Commandline.Argument arg)
Adds a nested
<arg> . |
void |
addContains(ContainsSelector selector) |
void |
addContainsRegexp(ContainsRegexpSelector selector) |
void |
addCustom(ExtendSelector selector) |
void |
addDate(DateSelector selector) |
void |
addDepend(DependSelector selector) |
void |
addDepth(DepthSelector selector) |
void |
addFilelist(FileList list)
Adds a list of files to be compiled.
|
void |
addFilename(FilenameSelector selector) |
void |
addFileset(FileSet set)
Adds a set of files to be compiled.
|
void |
addMajority(MajoritySelector selector) |
void |
addModified(ModifiedSelector selector) |
void |
addNone(NoneSelector selector) |
void |
addNot(NotSelector selector) |
void |
addOr(OrSelector selector) |
void |
addPresent(PresentSelector selector) |
void |
addSelector(SelectSelector selector) |
void |
addSize(SizeSelector selector) |
Path |
createClasspath()
Adds a path to the classpath.
|
PatternSet.NameEntry |
createExclude() |
PatternSet.NameEntry |
createExcludesFile() |
PatternSet.NameEntry |
createInclude() |
PatternSet.NameEntry |
createIncludesFile() |
PatternSet |
createPatternSet() |
void |
execute()
Executes the task.
|
boolean |
getApplet()
Gets the value of the "applet" property.
|
Path |
getClasspath()
Gets the classpath to be used for this compilation.
|
java.io.File |
getDestdir()
Gets the destination directory into which the Kawa source files
should be compiled.
|
boolean |
getFailonerror()
Gets the failonerror flag.
|
java.io.File[] |
getFileList()
Gets the list of files to be compiled.
|
boolean |
getFulltailcalls()
Gets the value of the fulltailcalls property.
|
java.lang.String |
getLanguage()
Gets the language.
|
boolean |
getListfiles()
Get the listfiles flag.
|
boolean |
getMain()
Gets the value of the "main" property.
|
java.lang.String |
getModulestatic()
Gets the value of the modulestatic property.
|
java.lang.String |
getPrefix()
Gets the prefix
|
boolean |
getServlet()
Gets the value of the "servlet" property.
|
Path |
getSrcdir()
Gets the source dirs to find the source Kawa files.
|
java.lang.String |
getTarget()
Gets the target VM that the classes will be compiled for.
|
boolean |
getTaskSuccess()
Get the result of the kawac task (success or failure).
|
boolean |
getWarnaserror()
Gets the value of the warnaserror property.
|
boolean |
getWarnundefinedvariable()
Gets the value of the warnundefinedvariable property.
|
boolean |
isIncludeDestClasses()
Get the value of the includeDestClasses property.
|
void |
setApplet(boolean applet)
If true, then Kawa will generate an applet.
|
void |
setCaseSensitive(boolean isCaseSensitive) |
void |
setClasspath(Path classpath)
Set the classpath to be used for this compilation.
|
void |
setClasspathRef(Reference r)
Adds a reference to a classpath defined elsewhere.
|
void |
setDefaultexcludes(boolean useDefaultExcludes) |
void |
setDestdir(java.io.File destDir)
Set the destination directory into which the Kawa source files
should be compiled.
|
void |
setErrorProperty(java.lang.String errorProperty)
The property to set on compilation failure.
|
void |
setExcludes(java.lang.String excludes) |
void |
setExcludesfile(java.io.File excludesfile) |
void |
setFailonerror(boolean fail)
Indicates whether the build will continue even if there are
compilation errors; defaults to true.
|
void |
setFollowSymlinks(boolean followSymlinks) |
void |
setFulltailcalls(boolean tailcalls)
If true, Kawa will use full tailcalls.
|
void |
setIncludeDestClasses(boolean includeDestClasses)
This property controls whether to include the destination classes
directory in the classpath given to the compiler.
|
void |
setIncludes(java.lang.String includes) |
void |
setIncludesfile(java.io.File includesfile) |
void |
setLanguage(java.lang.String lang)
Sets the language to use: "scheme", "commonlisp", or "elisp".
|
void |
setListfiles(boolean list)
If true, list the source files being handed off to the compiler.
|
void |
setMain(boolean main)
If true, then Kawa will create a static main method.
|
void |
setModulestatic(java.lang.String moduleStatic)
Passes the --module-static or --module-static-run flag.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix.
|
void |
setServlet(boolean servlet)
If true, then Kawa will generate a servlet.
|
void |
setSrcdir(Path srcDir)
Set the source directories to find the source Kawa files.
|
void |
setTarget(java.lang.String target)
Sets the target VM that the classes will be compiled for.
|
void |
setUpdatedProperty(java.lang.String updatedProperty)
The property to set on compilation success.
|
void |
setWarnaserror(boolean warnaserror)
Passes the --warn-as-error flag if true.
|
void |
setWarnundefinedvariable(boolean undefined)
Passes the --warn-undefined-variable flag if true.
|
public void setSrcdir(Path srcDir)
srcDir
- the source directories as a pathpublic Path getSrcdir()
public void setDestdir(java.io.File destDir)
destDir
- the destination directorypublic java.io.File getDestdir()
public void setClasspath(Path classpath)
classpath
- an Ant Path object containing the compilation
classpath.public Path getClasspath()
public Path createClasspath()
public void setClasspathRef(Reference r)
r
- a reference to a classpathpublic void setListfiles(boolean list)
list
- if true list the source filespublic boolean getListfiles()
public void setFailonerror(boolean fail)
fail
- if true halt the build on failurepublic boolean getFailonerror()
public void setTarget(java.lang.String target)
target
- the target VMpublic java.lang.String getTarget()
public void setIncludeDestClasses(boolean includeDestClasses)
includeDestClasses
- the value to usepublic boolean isIncludeDestClasses()
public void setUpdatedProperty(java.lang.String updatedProperty)
updatedProperty
- the property name to usepublic void setErrorProperty(java.lang.String errorProperty)
errorProperty
- the property name to usepublic void setPrefix(java.lang.String prefix)
prefix
- the prefix to usepublic java.lang.String getPrefix()
public void setMain(boolean main)
main
- true to pass --main to Kawapublic boolean getMain()
public void setApplet(boolean applet)
applet
- true to pass --applet to Kawapublic boolean getApplet()
public void setServlet(boolean servlet)
servlet
- true to pass --applet to Kawapublic boolean getServlet()
public void setFulltailcalls(boolean tailcalls)
tailcalls
- true to use full-tailcallspublic boolean getFulltailcalls()
public void setModulestatic(java.lang.String moduleStatic)
moduleStatic
- the flagpublic java.lang.String getModulestatic()
public void setWarnundefinedvariable(boolean undefined)
undefined
- true for --warn-undefined-variablepublic boolean getWarnundefinedvariable()
public void setWarnaserror(boolean warnaserror)
warnaserror
- true for --warn-as-errorpublic boolean getWarnaserror()
public void setLanguage(java.lang.String lang)
lang
- the language to usepublic java.lang.String getLanguage()
public void addFileset(FileSet set)
set
- the set of files to be compiledpublic void addFilelist(FileList list)
list
- the list of files to be compiledpublic void addArg(Commandline.Argument arg)
<arg>
.arg
- the argument to add to the kawa command linepublic PatternSet.NameEntry createInclude()
public PatternSet.NameEntry createIncludesFile()
public PatternSet.NameEntry createExclude()
public PatternSet.NameEntry createExcludesFile()
public PatternSet createPatternSet()
public void setIncludes(java.lang.String includes)
public void setExcludes(java.lang.String excludes)
public void setDefaultexcludes(boolean useDefaultExcludes)
public void setIncludesfile(java.io.File includesfile)
public void setExcludesfile(java.io.File excludesfile)
public void setCaseSensitive(boolean isCaseSensitive)
public void setFollowSymlinks(boolean followSymlinks)
public void addSelector(SelectSelector selector)
public void addAnd(AndSelector selector)
public void addOr(OrSelector selector)
public void addNot(NotSelector selector)
public void addNone(NoneSelector selector)
public void addMajority(MajoritySelector selector)
public void addDate(DateSelector selector)
public void addSize(SizeSelector selector)
public void addFilename(FilenameSelector selector)
public void addCustom(ExtendSelector selector)
public void addContains(ContainsSelector selector)
public void addPresent(PresentSelector selector)
public void addDepth(DepthSelector selector)
public void addDepend(DependSelector selector)
public void addContainsRegexp(ContainsRegexpSelector selector)
public void addModified(ModifiedSelector selector)
public void add(FileSelector selector)
public boolean getTaskSuccess()
public void execute() throws BuildException
BuildException
public java.io.File[] getFileList()