• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Compilation using ANT

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to post your code properly so that it is readable, otherwise most people won't be bothered to help you.
reply
    Bookmark Topic Watch Topic
  • New Topic