• 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

Servlet compilation from ant

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everybody,

I have made a simple servlet known as TestServlet1.java in tomcat
c:\Tomcat 4.1\webapps\jasbir\web-inf\classes\TestServlet1.java
well this servlet is running perfectly as I configured web.xml file but I want to comiple this servlet through ant and I have installed ant and build.xml file resides here c:\Tomcat 4.1\webapps\jasbir\web-inf\build.xml

but when I give the command ant.compile well no earror and no compilation
could u please tell me where Iam wrong in configuring Buil.xml file so this is a build.xml file.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project []>
<project name="jasbir" default="compile" basedir=".">

<target name="init">
<property name="src" value="${basedir}/src" />
<property name="classes" value="${basedir}/classes" />
</target>

<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${classes}" debug="on">
<classpath>


<fileset dir="../../WEB-INF/lib">
<include name= "..common/lib/servlet.jar"/>
</fileset>
</classpath>
</javac>
</target>

</project>
Please just tell me where Iam wrong as I think Iam making a silly mistakes.

Thanks.
Jasbir
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant does only compile "dirty" files - if your class files are uptodate, nothing will happen.

Run ant with -verbose to see what's happening.
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for helping me ,I have solved my problem .
Thanks Daniel .Thanks alot.

 
Yeah, but is it art? What do you think tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic