• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

ant folders

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
what is the structure of ant folders I mean we execute build.xml it creates folders like lib,dist.etc and what have to place in different folders?
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kiran,

You question does not seem to provide the complete requirement. Do you mean to ask what structures you have to have in your environment so as to meet with the J2EE specification?

If not, what structures the ant should be given to execute? In that case , it really does not matter. Any folder structure can be used and ant has to be instructed to fetch the files inside the directories by properly pointing to the top-level/root directory.

If you have meant to ask what exactly the contents should be present in the folders like lib,dist etc by looking at your project architecture means

lib - is used to keep all the library files like any .jar files your application may refer to.

dist - means distribution. it is just to keep your archive file (either .war or .ear) so that you can just distribute that file alone for your application to be hosted.


does that help?
 
Saloon Keeper
Posts: 28070
198
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 isn't like Maven. It doesn't force a fixed directory structure on projects.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tim Holloway:
Ant isn't like Maven. It doesn't force a fixed directory structure on projects.



Is that so?

I have worked in Ant and know that it is yet another tool like Maven. But have not yet started looking at it.

Thank you for the information Tim
 
Tim Holloway
Saloon Keeper
Posts: 28070
198
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
The primary difference between Ant and Maven is that Maven has the build rules already embedded in the Maven system. So if you set up the right directories, place the right files in them, and invoke the desired Maven goal, everything is magically done for you (magic meaning you really can't tell what it's doing, just what comes out the other end).

Ant, on the other hand, does nothing by itself. You have to set up your own rules, and because you do, you can select your own project structure.

Maven is popular for big projects - especially open-source ones, because the buy-in time is short. People don't have to learn a new directory structure for each project they come into. However, it can be somewhat confining.

Additionally, Maven can automatically download dependent components from component repositories (both standard/global and local/custom) and upload constructed components to component repositories. These are binary repositories and not to be confused with source repositories.

Ant is for people who want complete control and are willing to pay the price.

Which tool you prefer to use is largely a matter of personal preference, based on the kind of work your project needs to have done to get built, tested, deployed, etc.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's really great. Thank you very much for giving a insightful thought on both the tools Tim.
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raghavan,

Again to you, for showing me this post. It's great to read the pros and cons of the thing that you are really working on
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Pleasure Niranjan!
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic