I am getting some errors if wite the goal like this
<goal name="precompile-jsp" description="Precompile all JSPs into java classes,
and then into classes" prereqs="war:load,java:compile">
<ant:mkdir dir="${maven.build.dir}/jspc"/>
<ant:mkdir dir="${maven.build.dir}/jspc-processed"/>
<ant:mkdir dir="${maven.build.dir}/jspc-classes"/>
<ant:path id="jspc.classpath">
<ant:pathelement
location="E:/toolkit/eclipse/plugins/org.eclipse.tomcat_4.0.3/jasper-runtime.jar"/>
<ant:pathelement
location="C:/JBuilderX/thirdparty/jakarta-tomcat-4.0.6-LE-jdk14/lib/jasper-compiler.jar"/>
<ant:pathelement
location="E:/toolkit/eclipse/plugins/org.eclipse.tomcat_4.0.3/servlet.jar"/>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement path="${maven.build.dest}"/>
</ant:path>
<ant:taskdef name="jasper2" classname="org.apache.jasper.JspC"
classpathref="jspc.classpath"/>
<ant:jasper2
webXmlFragment="${maven.build.dir}/web-fragment.xml"
package="${pom.package}.jsp.${pom.artifactId}"
outputDir="${maven.build.dir}/jspc"
srcdir="${maven.war.src}"
uriroot="${maven.war.src}"
uribase="/${pom.artifactId}"
verbose="2"/>
<ant:javac
srcdir="${maven.build.dir}/jspc"
destdir="${maven.build.dest}"
debug="${maven.compile.debug}"
deprecation="${maven.compile.deprecation}"
optimize="${maven.compile.optimize}"
classpathref="jspc.classpath"/>
</goal>
Errors:-
[taskdef] [ERROR] No public no-arg constructor in class
org.apache.jasper.JspC
BUILD FAILED
File...... D:\starteam\conformia\pcm\dev\scripts\maven\maven.xml
Element... ant:taskdef
Line...... 1002
Column.... 102
No public no-arg constructor in class org.apache.jasper.JspC
Total time: 4 seconds
Finished at: Tue Apr 26 12:09:30 GMT+05:30 2005
Jack Tang <[EMAIL PROTECTED]> wrote:Hi
How about ant jspc task?
http://ant.apache.org/manual/OptionalTasks/jspc.html
/Jack
On 4/26/05, rajas kumar
wrote:
> Hai all,
>
> I need help in compiling jsps before creating war file.......can any body
> tell me the way how to compile.....
>
> regs,
> raja.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com