• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Need more info on 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 trying to find out more info on Ant, but nothing I can find by searching anywhere is leading to an answer. Is Ant only for building things that are written in Java? Or can I use it for C/C++ and other things? That's pretty much all I wanted to know, but I can't seem to find it out. Thanks!
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found this at Source Forge. It is an alpha version of a task to compile C/C++ code.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They were just discussing how to build a C task on the ant list. Sory I can't be more help but if you do a search of the last week or so I'm sure you'll find what you're looking for.
 
Saloon Keeper
Posts: 24499
167
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
One of the useful things about Ant is that you can add your own custom tasks. There's even a collection of popular add-ons available from the jakarta ant website. Presently I'm using the antlr compiler-compiler task in an Ant buildfile, for example.
Although the actual custom task itself must be written in Java, the custom task code can invoke non-java processes such as running executable commands and script files. It's really not that hard to create your own task.
 
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant is used predominantly for Java development, but there is a growing number of folks using it for C/C++ development. The C/C++ compiling task lives at the ant-contrib project on SourceForge currently, but the plan is to migrate it to Ant's own codebase when it is ready. Our book examples use it and it works very nicely.
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sure seems the documentation provided with the ant program is lacking. Thanks for the links.
 
Erik Hatcher
Author
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Certainly a biased opinion here, but Ant's documentation is pretty darn good for an open source project. All tasks are fully documented, complete with examples. There is certainly room for improvement, especially at putting the details together into a more cohesive and higher-level view of how to use it, but by looking at a few examples and reading the existing documentation, folks can be using Ant in very little time quite effectively.
Do you have some specific areas that you feel are lacking? And as always in the open-source world: thanks for volunteering!
 
reply
    Bookmark Topic Watch Topic
  • New Topic