aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Question About Servlets Compiling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Question About Servlets Compiling" Watch "Question About Servlets Compiling" New topic
Author

Question About Servlets Compiling

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 412
Hello,

I am working on one servlet in the lib folder of my application.

Sometimes when I am working with one of the servlets, the entire collections of servlets also recompiles.

Could you help me figure out why this occurs?

Thanks,
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Compiling a servlet is nothing different than compiling a plain Java class.
So the answer to you question depends on how are compiling the servlet?
Do you use Ant? Any editor like Eclipse? Hand compile through command line?
You need to TellTheDetails.


SCJP, SCWCD.
|Asking Good Questions|
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 412
There is a build.xml file in the util dir.
I did not create the app
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 412
Why is a build file in the util dir in the first place?
Why do people use ant?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

Ant is a build tool so you don't have to keep typing in the command to compile. build.xml is how you tell Ant what to do and where to find the files.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 412
Do you know of any tutorials that are good which would help me understand.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30309
    
150

The official one is good. As is the book 'Ant in Action".
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

I second the vote on Ant in Action. It's a must-have for anyone doing work with Ant.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question About Servlets Compiling