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
Constructor and Description |
---|
WLJspc() |
Modifier and Type | Method and Description |
---|---|
Path |
createClasspath()
Maybe creates a nested classpath element.
|
void |
execute()
Run the task.
|
protected String |
replaceString(String inpString,
String escapeChars,
String replaceChars)
Replace occurrences of a string with a replacement string.
|
protected void |
scanDir(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(File dirName)
Set the directory containing the source jsp's
|
void |
setPackage(String packageName)
Set the package under which the compiled classes go
|
void |
setSrc(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 Path createClasspath()
public void execute() throws BuildException
execute
in class Task
BuildException
- if there is an error.protected String replaceString(String inpString, String escapeChars, String replaceChars)
inpString
- the string to convert.escapeChars
- the string to replace.replaceChars
- the string to place.protected void scanDir(String[] files)
files
- the files to scan.public void setClasspath(Path classpath)
classpath
- the classpath to use.public void setDest(File dirName)
dirName
- the directory containg the source jsp'spublic void setPackage(String packageName)
packageName
- the package name for the classespublic void setSrc(File dirName)
dirName
- the directory containg the source jsp's