java.lang.Cloneable, SelectorContainerpublic class WLJspc extends MatchingTask
example
<target name="jspcompile" depends="compile">
<wljspc src="c:\\weblogic\\myserver\\public_html"
dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp">
<classpath>
<pathelement location="${weblogic.classpath}" />
<pathelement path="${compile.dest}" />
</classpath>
</wljspc>
</target>
filesetdescription, location, project| Constructor | Description |
|---|---|
WLJspc() |
| Modifier and Type | Method | Description |
|---|---|---|
Path |
createClasspath() |
Maybe creates a nested classpath element.
|
void |
execute() |
Run the task.
|
protected java.lang.String |
replaceString(java.lang.String inpString,
java.lang.String escapeChars,
java.lang.String replaceChars) |
Replace occurrences of a string with a replacement string.
|
protected void |
scanDir(java.lang.String[] files) |
Scan the array of files and add the jsp
files that need to be compiled to the filesToDo field.
|
void |
setClasspath(Path classpath) |
Set the classpath to be used for this compilation.
|
void |
setDest(java.io.File dirName) |
Set the directory containing the source jsp's
|
void |
setPackage(java.lang.String packageName) |
Set the package under which the compiled classes go
|
void |
setSrc(java.io.File dirName) |
Set the directory containing the source jsp's
|
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, XsetItemsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocationbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws BuildException
execute in class TaskBuildException - if there is an error.public void setClasspath(Path classpath)
classpath - the classpath to use.public Path createClasspath()
public void setSrc(java.io.File dirName)
dirName - the directory containing the source jsp'spublic void setDest(java.io.File dirName)
dirName - the directory containing the source jsp'spublic void setPackage(java.lang.String packageName)
packageName - the package name for the classesprotected void scanDir(java.lang.String[] files)
files - the files to scan.protected java.lang.String replaceString(java.lang.String inpString,
java.lang.String escapeChars,
java.lang.String replaceChars)
inpString - the string to convert.escapeChars - the string to replace.replaceChars - the string to place.