aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Script for war file build with only jsp's 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 "ANT Script for war file build with only jsp Watch "ANT Script for war file build with only jsp New topic
Author

ANT Script for war file build with only jsp's

ChakraPani Margani
Greenhorn

Joined: Aug 19, 2007
Posts: 17
Hi All,

I have some jsp's in my web application. I don't have any servlets or other classes.

I need ant script to build the war file. I have tired with some other scripts but unable to execute. Getting like web.xml is not able to find like error..

Can any body help me to provide ant scritp for building war file..

Thanks in advance..
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30938
    
158

Let's try this another way. What do you have so far? What specific error are you getting?

Also, what is the directory structure of your web project? Does it look like a war should?


[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
ChakraPani Margani
Greenhorn

Joined: Aug 19, 2007
Posts: 17
I have attached the project structure as image.

I can export the war file from eclipse editor. I want some ant script to provide war file.

I have only jsp's,html's. Don't have any java classes.

Help me on this.

thanks in advance.


[Thumbnail for proj_structure.PNG]

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30938
    
158

That's good - it is a standard web directory structure. What Ant script did you run and what error did it give you?
 
 
subject: ANT Script for war file build with only jsp's