This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

That's good - it is a standard web directory structure. What Ant script did you run and what error did it give you?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT Script for war file build with only jsp's
 
Similar Threads
War file deployment + configuration
Help for prepare scripts...
Best strategy to run configurable tasks in Ant for configurable EAR contents
Import Ant build from jar
what can I expect from ant