• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

incremental build using Ant

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i m relative new to the Ant tool. I want to build my project incrementaly i.e. only those files it should build that have been changed and leave others.
Also i want to know whether Module wise JARs are posiible or not.
other than this board u can mail me directly at:

thanx.
gauravdhama@gmail.com
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by gaurav dhama:
I want to build my project incrementaly i.e. only those files it should build that have been changed and leave others.

If you're talking about compiling only those .java files that have changed, Ant's <javac> task does exactly this out of the box.

Originally posted by gaurav dhama:
Also i want to know whether Module wise JARs are posiible or not.

Could you elaborate on what you mean by "module wise JARs"?
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would it be possible to make a jar for deployment of only the new resources or modified resources like java classes etc. When run with the -v option all the files that are to be compiled are logged. This would real useful if someone could post the solution or is it a straight forward feature ?
[ November 19, 2004: Message edited by: Ram Kumar Subramaniam ]
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant is specifically designed for incremental builds, just like Make is - though Make had problems figuring out what needed to be rebuilt on Java projects, which is one of the primary reasons Ant was created.

There are builtin Ant tasks to build JARs, WARs, EARs, ZIP archives and tarballs (compressed or not). That's just about all I've ever needed.
 
reply
    Bookmark Topic Watch Topic
  • New Topic