This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Basic build.xml file required  RSS feed

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Am new to ANT and it is my first time writing a build file.
My folder structure:

xyztransmission
-- buildscripts(ant.properties,build.xml)
-- lib(jdom.jar)
-- src
-----java
-------servlets(*.java)
-------utils(*constants.java)
-----web(welcome.html)
-------WEB-INF(web.xml)

I want to create a war file and deploy it into tomcat
(i.e.create a folder named hubtransmission under webapps)


Can anyone help me with the build.xml

Thanks
Kawa
 
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you taken a look at the ant manual?

ant manual

-->> Using Ant
------>> Example Buildfile

The example build file may help. Also look through the other parts of "Using Ant".

Since you want to build a war file check out the war task.

-->> Ant Tasks
------>> Core Tasks
------------>> War

If you get stuck come back and tell us what you've tried and where you're stuck.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!