• 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

Ant build separation

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have been reading "Java Tools for Xtreme Programming" and noticed a point the authors make in regard to ant builds. They suggest the best approach is one of separating builds for Web, EJB, Aplets etc into their own build files. I wanted to get opinions on this, as I subscribe to the single build file principle myself (having all files under the same dev tree), and wondered under what circumstances having separate build files might be beneficial. I realise one of them must be performance in large builds. But surely having targets and filters for different build types (ie compile, debug, all etc) can help focus the build process.
Look forward to comments.
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do they advocate truly separate build files, or recursive builds?
Even with separate build files, you could use 'import' to include some common definitions.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Louis, do you have a page number, please? Thanks!
 
Ben Dover
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
pp. 88-89
I suppose nesting build files is not such a major issue so long as the main build.xml is available under the root dir of the dev tree. It then can nest any other build files.
Personally I prefer the single build file, and wanted opinions as to why this may or may not be wise. I think it is as it reduces chances for confusion and ensures common practice.
 
reply
    Bookmark Topic Watch Topic
  • New Topic