This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling ANT task from Java program

 
Yash Sharma
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if this sounds naive I want to use the ?Freemarker ANT task to generate an HTML representation for my XML based on a template. However I want to do this using my program on the fly, which means that I must be able to call the ANT task from inside my Java program.

Can we call an ANT task from a Java Program or JSP?
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Ant documentation that ships with it, refer to the section
'Using Ant Tasks Outside of Ant'. We have used some ant tasks from within our java code and its very easy to use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic