|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.ajax4jsf.templatecompiler.ant.TemplateCompilerTask
public class TemplateCompilerTask
Task template compiler.
Field Summary | |
---|---|
protected java.util.Vector |
filesets
|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
TemplateCompilerTask()
Default constructor |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a specified file should be included in a file list. |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files to copy. |
org.apache.tools.ant.types.Path |
createClasspath()
Add a path to the classpath |
void |
execute()
|
java.lang.String |
generateJavaClassName(java.lang.String fileTemplateName)
Generate java class name from template filename |
java.lang.ClassLoader |
getClassLoader()
|
org.apache.tools.ant.types.Path |
getClasspath()
Gets the classpath to be used for this compilation. |
java.io.File |
getDestdir()
getting a destDit |
java.io.File |
getSrcdir()
getting srcDir |
org.apache.velocity.Template |
getTemplate(java.lang.String name)
|
void |
init()
|
void |
processTemplate(java.lang.String sFileTemplate)
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation |
void |
setClasspathRef(org.apache.tools.ant.types.Reference ref)
Adds a reference to a classpath defined elsewhere. |
void |
setDestdir(java.io.File destDir)
setting a destDir |
void |
setSrcdir(java.io.File srcDir)
setting a srcDir |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector filesets
Constructor Detail |
---|
public TemplateCompilerTask() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.io.File getSrcdir()
public void setSrcdir(java.io.File srcDir)
destDir
- The srcDir to set.public java.io.File getDestdir()
public void setDestdir(java.io.File destDir)
destDir
- The destDir to set.public java.lang.String generateJavaClassName(java.lang.String fileTemplateName)
fileTemplateName
- a string contain template filename
public void processTemplate(java.lang.String sFileTemplate)
sFileTemplate
- public java.lang.ClassLoader getClassLoader()
public void addFileset(org.apache.tools.ant.types.FileSet set)
set
- a set of files to copypublic void init() throws org.apache.tools.ant.BuildException
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- the directory in which the file was found.name
- the name of the file.
public org.apache.tools.ant.types.Path getClasspath()
public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath
- an Ant Path object containing the compilation classpath.public void setClasspathRef(org.apache.tools.ant.types.Reference ref)
ref
- a reference to a classpathpublic org.apache.tools.ant.types.Path createClasspath()
public org.apache.velocity.Template getTemplate(java.lang.String name) throws CompilationException
CompilationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |