public 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>
fileset
description, location, project
Constructor and Description |
---|
WLJspc() |
Modifier and Type | Method and 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 occurances 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, 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
clone, getDescription, getLocation, getProject, setDescription, setLocation
public void execute() throws BuildException
execute
in class Task
BuildException
- 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 containg the source jsp'spublic void setDest(java.io.File dirName)
dirName
- the directory containg the source jsp'spublic void setPackage(java.lang.String packageName)
packageName
- the package name for the clasesprotected 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.