|
Hi..
Good
Day!
I
encountered a typical problem while compiling the jsp files using the 'Ojspc'
task in Ant Script.
The
jsp compilation is stopping once it encounters any jsp having page directive
with contentType like the below tag.
<%@ page
contentType="text/html;charset=ISO-8859-1"%>
If
the page directive is not present in the jsp the ant build completes the
compilation succesfully.
Can
any one let me know how to work about the problem to solve.
The
following are the task definition for 'OJSPC' and target which calls the
task.
<taskdef name="ojspc"
classname="org.apache.tools.ant.taskdefs.optional.jsp.OJspC" classpathref="applicationClasspath" />
<target
name="buildJSP" depends="prepFlist">
<mkdir dir="C:/temp" /> <ojspc d="${application.jsp.classes}" srcdir="${application.jsp.src}" appRoot="${compile.approot}" debug="true" verbose="true" noTldxmlValidate="false" xmlValidate="false" forgiveDupDirAttr="true" packageName="${package.name}" extraImports="java.util.*" > <classpath refid="applicationClasspath"/> <fileset dir="E:\web" includes="${file.list}"> </fileset> </ojspc> </target> The Execution
trace for a jsp with the "<%@ page contentType"
declaration :
Buildfile:
build.xml
buildJSP:
[ojspc] JSPC:::_emr._jsp [ojspc] Translating file: E:/web/eMR\jsp\AdverseEventType.jsp //-> Location of file [ojspc] File not found: D:\BuildJSP\eMR\jsp\AdverseEventType.jsp // -> Location of Ant Script BUILD
FAILED
D:\BuildJSP\common.xml:33: Java returned: -5 Total time: 17 seconds
PS:
-----
1. The file path is changed automatically to the
directory where the ANT script is located.?
2. common.xml:33: has the OJspc call like
this
"<ojspc
d="${application.jsp.classes}" srcdir="${application.jsp.src}"
appRoot="${compile.approot}" debug="true"
verbose="true"
noTldxmlValidate="false" xmlValidate="false" forgiveDupDirAttr="true" packageName="${package.name}" extraImports="java.util.*" > " Please let me know if any body came across the same
problem.
Thanks in
Advance,
Vinodbabu MV
| Medicom Solutions Private Limited | 73-D, Electronic City, Hosur Road, Bangalore - 100 | Office : +91 80 28520230 Extn.663 | Mail : [EMAIL PROTECTED] | Website :www.medicomsoft.com | |
Title: Message
- compilation problem while using OJspc M V Vinod Babu
