com.ibm.websphere.ant.tasks
Class JspC
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--com.ibm.websphere.ant.tasks.JspC
- public class JspC
- extends org.apache.tools.ant.Task
The JspC task compiles a directory full of JSP files into .class files.
The structure of the JspC task is shown below:
<wsjspc wasHome="websphere install directory"
src="directory containing JSP files"
toDir="temporary working directory"
classpath="ear classes"
classpathref="ear classes reference element name"/>
The wasHome attribute is optional and contains the location of the WebSphere Installation Directory.
The src attribute is required and specifies the directory containing JSP files to process. This directory may be the root of a WAR file or a plain directory.
The toDir attribute is required and specifies the output directory for the JSP compiler to use and place the generated class files.
The classpath attribute is optional and specifies extra, ear classes that are needed to compile the JSPs
The classpathref attribute is optional and does the same thing as the classpath attribute, but is specified as
an Ant path reference.
<taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC"/>
- Version:
- 1.0
- See Also:
Copyright IBM Corp. 2002
Source File: JspC.java
Creation Date: May 17, 2002
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary |
JspC()
Constructor for JspC |
Method Summary |
org.apache.tools.ant.types.Path |
createClasspath()
Maybe creates a nested classpath element. |
void |
execute()
|
protected java.lang.String |
getToolsJar()
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Sets the classpath |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setFailonerror(boolean failonerror)
Sets the failonerror. |
void |
setFork(boolean fork)
Sets the fork. |
void |
setSrc(java.lang.String src)
Sets the src. |
void |
setToDir(java.lang.String toDir)
Sets the toDir. |
void |
setWasHome(java.lang.String wasHome)
Sets the wasHome. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspC
public JspC()
- Constructor for JspC
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- See Also:
Task.execute()
setWasHome
public void setWasHome(java.lang.String wasHome)
- Sets the wasHome.
- Parameters:
wasHome
- The wasHome to set
setFailonerror
public void setFailonerror(boolean failonerror)
- Sets the failonerror.
- Parameters:
failonerror
- The failonerror to set
setSrc
public void setSrc(java.lang.String src)
- Sets the src.
- Parameters:
src
- The src to set
setToDir
public void setToDir(java.lang.String toDir)
- Sets the toDir.
- Parameters:
toDir
- The toDir to set
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
- Maybe creates a nested classpath element.
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
- Adds a reference to a CLASSPATH defined elsewhere.
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
- Sets the classpath
- Parameters:
classpath
- The classpath to set
setFork
public void setFork(boolean fork)
- Sets the fork.
- Parameters:
fork
- The fork to set
getToolsJar
protected java.lang.String getToolsJar()