This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
mooooooo ..... tiny ad ....
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!