Hi,
I am trying to compile
JSP using
Ant build tool.The generated source(.java) file contains package org.apache.jsp. Due to this package the Compiled JSP(
servlet) name has to be preceeded with package org.apache.jsp. How do I avoid creating package? Find below my Ant build.xml.
project name Webapp Precompilation default all basedir .
target name jspc
taskdef classname org.apache.jasper.JspC name jasper2
classpath id jspc.classpath
pathelement location java.home..libtools.jar
fileset dir tomcat.home
include name *.jar
fileset
fileset dir lib.dir
include name *.jar
fileset
fileset dir ant.homelib
include name ant.jar
fileset
fileset dir webapp.pathWEB-INFlib
include name *.jar
fileset
classpath
taskdef
jasper2
validateXml false
uriroot webapp.path
webXmlFragment webapp.pathWEB-INFgenerated_web.xml
outputDir webapp.pathWEB-INFsrc
target
target name compile
javac destdir webapp.pathWEB-INFclasses
optimize on
debug on failonerror false
srcdir webapp.pathWEB-INFsrc
classpath
pathelement location web.inf.dirclasses
fileset dir tomcat.home
include name *.jar
fileset
fileset dir lib.dir
include name *.jar
fileset
fileset dir ant.homelib
include name ant.jar
fileset
fileset dir webapp.pathWEB-INFlib
include name *.jar
fileset
classpath
javac
target
target name all depends jspc,compile
target
project